Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2008, 12:49 AM   PM User | #1
sakka
New Coder

 
Join Date: Nov 2007
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
sakka is an unknown quantity at this point
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!
sakka is offline   Reply With Quote
Old 12-02-2008, 05:53 PM   PM User | #2
sakka
New Coder

 
Join Date: Nov 2007
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
sakka is an unknown quantity at this point
Just a bump to see if anyone can give me a hint...

Thank you!
sakka is offline   Reply With Quote
Old 12-02-2008, 09:39 PM   PM User | #3
rhinodog8
New Coder

 
Join Date: Aug 2008
Location: Colfax, California USA
Posts: 64
Thanks: 3
Thanked 5 Times in 5 Posts
rhinodog8 is an unknown quantity at this point
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.
rhinodog8 is offline   Reply With Quote
Old 12-03-2008, 10:32 PM   PM User | #4
sakka
New Coder

 
Join Date: Nov 2007
Posts: 41
Thanks: 6
Thanked 0 Times in 0 Posts
sakka is an unknown quantity at this point
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
sakka is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:18 AM.


Advertisement
Log in to turn off these ads.