Hi,

I am using version 1.6.0 (double-checked now). Maybe the weirdness
from another thread is related, but my problem is actually something
else: I just want to *update* (ie. append) contents of some element,
not replace it. The documentation says giving a parameter `insertion`
is the right way to do it. In essence -- yes, but in my case only for
the Ajax.Updater, not Ajax.PeriodicalUpdater. If someone familiar with
the library could have a look inside prototype.js, it would be great.

Does this simple example work for you, Justin?

new Ajax.PeriodicalUpdater('some_div', '/some_file',
        { asynchronous:true,
          frequency: 3,
          method: 'get',
          insertion: Insertion.Bottom
        }
        );

Thanks!!

Karel

On Jan 22, 11:49 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> On Jan 22, 2008 3:00 PM, Karel Minarik <[EMAIL PROTECTED]> wrote:
>
> > BUT, the bigger problem is, that Ajax.PeriodicalUpdater keeps
> > inserting *more* elements than it receives from the server.
>
> OK, now we're getting somewhere. This sounds like the same issue as
> discussed in this 
> conversation:http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thr...
>
> Might want to start following that thread to figure out what's going
> on. I am using PeriodicalUpdater is many places and have not had any
> issues like this, so not sure if it's an usage problem or what.
>
> What version of prototype are you using?
>
> -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 [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