thanks for your answer. here is a short code snippet i'm using. i do
not want to place the second call on top or under the first content, i
just want to make sure the second request stop the first one so that
only the content from the second updater get's displayed.

function update(id,url) {
  if($(id)) {
    new Ajax.Updater(id,url,{
           asynchronous:true,
           evalScripts:true,
           onFailure: function(obj) {$(id).update
('<center><strong>error...<strong></center>');   }
   });
  }
}

On Nov 30, 10:47 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I assume you're not using the "insertion" option on your Ajax.Updater
> calls[1]?  If so, there's your answer.  If not, can you put together a
> small, self-contained example that demonstrates the prblem?
>
> [1]http://www.prototypejs.org/api/ajax/updater
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
>
> On Nov 27, 11:10 am, Stucture_Ulf <[EMAIL PROTECTED]>
> wrote:
>
> > hi all!
>
> > i have a problem with Ajax.updater.
>
> > When i run the Ajax.updater in one div and then if a user clicks on
> > link and activates another Ajax.updater in the same div before the
> > first one is finished the data get merged in the same div. The top is
> > showing the new content, underneath is showing the data that was not
> > yet loaded from the first call.
>
> > how can I fix this? can i stop/kill the first updater before running
> > the second one? or should i wait until the first is finished before
> > triggering the next one...and how do I do that?
>
> > grateful for help and advice
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to