List Info

Thread: prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??




prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??
user name
2008-01-21 18:03:57
Hello ,

I have a PeriodicalUpdater executing every x seconds and
sends a ajax
request to update an element.
Each time it comes back, the element is getting replaced
with some
html and and possibly
<script>coolFunction()</script>.
This seems to work fine when for prototype 1.5.
However when I upgraded to prototype 1.6, it seems to
execute
coolFunction() as many times as the request has been
called.

For example: the PeriodicalUpdater has already send out 5
request
already without <script>coolFunction</script>,
on the 6th one the
response has a <script>coolFunction</script>.
Prototype will call
coolFunction six times.

What is the problem here? I didnt used to have it when I
used
prototype 1.5

Any help is appreciated
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??
user name
2008-01-21 21:12:09
On Jan 21, 2008 6:03 PM, jin1212gmail.com <jin1212gmail.com> wrote:
> For example: the PeriodicalUpdater has already send out
5 request
> already without
<script>coolFunction</script>, on the 6th one
the
> response has a
<script>coolFunction</script>. Prototype will
call
> coolFunction six times.

Well that doesn't sound right at all. Do you have an example
page or
at least the HTML/JavaScript that can be used to reproduce
this?

-justin

--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )