[Proto-Scripty] Periodical Updater detect content change

2009-06-23 Thread Aamchi
Hi, I was wondering if Ajax.PeriodicalUpdater can detect if content has changed since the last update and if so trigger an event. So for example I have a scoreboard which fetches data every 5 seconds and displays this. I would be cool if there could be some kind of notification if content had

[Proto-Scripty] Re: Periodical Updater detect content change

2009-06-23 Thread Aamchi
cause the hash to be overwritten in the JSON header? Or do I have to send two hashes always and compare them? On 23 Jun., 22:57, Richard Quadling rquadl...@googlemail.com wrote: 2009/6/23 Aamchi aman.ra...@googlemail.com Hi, I was wondering if Ajax.PeriodicalUpdater can detect if content

[Proto-Scripty] Re: Periodical Updater detect content change

2009-06-24 Thread Aamchi
a Form.observerhttp://www.prototypejs.org/api/timedObserver/form-observer I used to use this but implemented my own version of it with a cache and some hashing, it didnt take long to write and works perfectly HTH Alex - Original Message - From: Aamchi aman.ra...@googlemail.com To: Prototype

[Proto-Scripty] Re: Periodical Updater detect content change

2009-06-24 Thread Aamchi
Thanks Richard, I will try this out. Really appreciate your help! On 24 Jun., 12:12, Richard Quadling rquadl...@googlemail.com wrote: 2009/6/23 Aamchi aman.ra...@googlemail.com: Thanks, for your response. I'm not 100% sure if I understand correctly what you mean. If I get some data

[Proto-Scripty] Re: Periodical Updater detect content change

2009-06-24 Thread Aamchi
...@googlemail.com wrote: 2009/6/23 Aamchi aman.ra...@googlemail.com: Thanks, for your response. I'm not 100% sure if I understand correctly what you mean. If I get some data and generate a hash and write this to the JSON header and retrieve this when calling onSuccess, how will I