[Proto-Scripty] Re: Prototype: Ajax.PeriodicalUpdater keeps running after container is removed or changed

2009-04-25 Thread T.J. Crowder
Hi, Your English is quite good. Again, just call the stop() method on the updater when you remove the container, it's not done automatically for you. Here's an example: http://pastie.org/457897 HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services

[Proto-Scripty] Re: Prototype: Ajax.PeriodicalUpdater keeps running after container is removed or changed

2009-04-25 Thread Nahuel Bulian
Hi TJ. Yesterday at nigth I solved my problem... I going try to explain what a I did... First of all I moved the script who has the PeriodicalUpdater to my js file and I could use the function globally. Here the function: var ajax1 = new Array(); function update_apu(div ,url, freq) { i =

[Proto-Scripty] Re: Prototype: Ajax.PeriodicalUpdater keeps running after container is removed or changed

2009-04-24 Thread NonoX
T.J. If the div container doesn't change the stop method works fine, the issue is presented when the div container where the periodicalupdater is executing change... the periodicalupdater still working in background and never stop... the only way for stop that is reloading the page. I hope be

[Proto-Scripty] Re: Prototype: Ajax.PeriodicalUpdater keeps running after container is removed or changed

2009-04-22 Thread T.J. Crowder
Hi, PeriodicalUpdater has a stop method.[1] So keep a reference to it, and then call its stop method when you delete the div being updated. (Changing the div isn't a problem, provided it still exists.) [1] http://www.prototypejs.org/api/ajax/periodicalUpdater HTH, -- T.J. Crowder tj / crowder