Grzesiek Slusarek
2006-Jan-29 00:01 UTC
How to fire event listener after site update by Ajax Updater?
Hi all. I have site that is updated by Ajax updater. After site is update i want to use some javascript code and I don''t want use javascript onClick. I try to use some event listener but I don''t know how to fire them. What is the event when some part of site is update by ajax? Thanks for any help Gregor ---------------------------------------------------- Chuck nie musi dzwonić za darmo, to ludzie dzwonią do niego... przez Spika: http://klik.wp.pl/?adr=www.spik.wp.pl&sid=644
Jerod Venema
2006-Feb-01 03:21 UTC
Re: How to fire event listener after site update by Ajax Updater?
Gregor, If the site is being updated by Ajax, you can just implement your code wherever that "update" code runs. Perhaps you're looking for the AjaxOptions? That will let you specify the function to run when an Ajax request completes successfully... http://www.sergiopereira.com/articles/prototype.js.html#Ajax.options -Jerod On 1/28/06, Grzesiek Slusarek <gregtech@wp.pl> wrote:> > Hi all. I have site that is updated by Ajax updater. After site is update > i want to use some javascript code and I don't want use javascript onClick. > I try to use some event listener but I don't know how to fire them. What is > the event when some part of site is update by ajax? > Thanks for any help > Gregor > > ---------------------------------------------------- > Chuck nie musi dzwonić za darmo, to ludzie dzwonią do niego... > przez Spika: http://klik.wp.pl/?adr=www.spik.wp.pl&sid=644 > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Grzesiek Slusarek
2006-Feb-01 08:00 UTC
re: How to fire event listener after site update by Ajax Updater?
Hi Gregor. Well I read a lot about AjaxOptions and using EvalScripts:true and try do that in my apps but the result was that Firefox 1.5 just crush. I did the same in Opera 8.5 and Opera javascript console shows that there is a bug in prototype so actually for me there is no other way fire event after site update by ajax than using simple onClick, onChange etc. I already sent info about bug but when this will be pathed I don''t know. Gregor ---------------------------------------------------- Harry Potter i Książę Półkrwi NIEZIEMSKI KONKURS i czarodziejskie gadżety! http://klik.wp.pl/?adr=www.harrypotter.wp.pl&sid=645