...

View Full Version : Mootools - Trying to use Accordion in tandem with Request.html



sakka
11-26-2008, 01:49 AM
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!

sakka
12-02-2008, 06:53 PM
Just a bump to see if anyone can give me a hint...

Thank you!

rhinodog8
12-02-2008, 10:39 PM
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.

sakka
12-03-2008, 11:32 PM
Hey, thanks for your reply!

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

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

Thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum