Hey Jonathan,

Jonathon Davis a écrit :
> My AJAX call: Ajax.Updater('pagewrapper', 'pagelayout.html');

So I assume your HTML is actually an HTML *fragment*, right?  Something 
that legally fits inside that "pagewrapper" <div>, hmmm?

Now:

1) does your original page (the one you're AJAX'ing from) contain a 
loaded script.aculo.us script?
2) does your pagelayout.html wrap the effect call in a <script> tag?
3) do you use "new Effect.Blah" instead of "Effect.Blah" (cleaner)?
4) Does that script fragment appear *after* the HTML that defines the
    "navslider"-ID'd element?
5) And the kicker, your actual problem: add evalScripts: true to your
    Updater's options:

new Ajax.Updater('pagewrapper', 'pagelayout.html', {
   method: 'get', evalScripts: true });

(Since you're fetching a static HTML fragment, GET is preferable to the 
default POST, btw).

Cheers,

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to