Tench
2005-Oct-19 17:42 UTC
js not executed after ajax.updater -- evalScript:true not a solution
Hi. I have a <div> on a page that I replace with a new one using Ajax.Updater. Inside this newly placed div, I am using classes and behavior.js to launch various Ajax things and scriptaculous effects. None of them, however, get triggered after the update. They also fire no javascript errors or anything of the kind. I''ve seen the option evalScripts with Ajax stuff-- but it''s only made for code between <script/> tags. I am wondering if there is a way to make sure that the behavior/class-ruled stuff gets triggered in the sections which have been updated by Ajax.Updater. Many thanks in advance. Tench
Tench
2005-Oct-19 17:56 UTC
Re: js not executed after ajax.updater -- evalScript:true not a solution
Oops, let me answer my own question. If I return <script>Behaviour.apply();</script> with the ajax stuff, and set evalScripts:true -- it works. Tench On 19. окт 2005., at 19:42, Tench wrote:> Hi. > > I have a <div> on a page that I replace with a new one using > Ajax.Updater. Inside this newly placed div, I am using classes and > behavior.js to launch various Ajax things and scriptaculous > effects. None of them, however, get triggered after the update. > They also fire no javascript errors or anything of the kind. > > I''ve seen the option evalScripts with Ajax stuff-- but it''s only > made for code between <script/> tags. I am wondering if there is a > way to make sure that the behavior/class-ruled stuff gets triggered > in the sections which have been updated by Ajax.Updater. > > Many thanks in advance. > > Tench > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Seemingly Similar Threads
- cross-fade effect on elements updated by ajax.updater?
- problem with Ajax.Updater evalscript and firefox
- using the evalScript option on Ajax.Updater
- Prototype 151; Ajax.Updater vs Ajax.Request and evalScripts=true
- Ajax.Updater with evalScripts: true strips curly braces