Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Mootools - Trying to use Accordion in tandem with Request.html

    Hello!

    I'm a newbie to Mootools but have really enjoyed working with it so far.

    I'm working on a page that uses Request.Html to gather contents of a div. The contents in one of the divs uses according for expanding sections of the text. However, it seems that it's not working together. I know on the demo, Mootools has:

    "If we had things inside this HTML that needed some MooTools love (the sort of things that go inside the domready event), we would have to call our scripts' attention to this code manually."

    I'm pretty sure this is where the problem lies. Of course the accordion javascript code works in the domready. How would one go about "calling our scripts' attention to this code manually"? I've tried adding the Accordion code to the Request.Html code to see if the two files were conflicting, but it didn't work.

    Any help would be MUCHLY appreciated! Thank you!

  • #2
    New Coder
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Just a bump to see if anyone can give me a hint...

    Thank you!

  • #3
    New Coder
    Join Date
    Aug 2008
    Location
    Colfax, California USA
    Posts
    64
    Thanks
    3
    Thanked 5 Times in 5 Posts
    when you request request.html is there a option for callback? like onComplete or such?
    I don't know anything about mootools.

    What you need to do is call the according function after the request has been made.

  • #4
    New Coder
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Hey, thanks for your reply!

    This site helped me out a ton:
    http://www.mooforum.net/solutions12/...html-t143.html

    I was able to figure it out by altering the code to do update: instead of onSuccess.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •