Hi,

I am using the update function in Prototype to periodically load new
html and javascript into various elements on my page.

The loaded script can include timers - I am using PeriodicalExecuter.

Update works fine when it's just replacing html - but I would like it
to replace the previously loaded script as well instead of just adding
the new script!
I realize that this is a lot to ask for...

So my question is: How can I make sure that any old script (global
functions, variables and any running timers) gets cleared along with
the html when I am loading the new content? Is there a neat way of
doing this?

Lars


--~--~---------~--~----~------------~-------~--~----~
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