Using prototype to show status while doing ajax calls

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Using prototype to show status while doing ajax calls

Post by GeXus »

Would anyone who is familiar with prototype happen to know how you would go about showing some sort of status or loading message while the ajax call is being made?

This is how im using prototype for the call..

Code: Select all

function update(){
     var url = '../update.php';
     var pars = 'site='+escape($F('site'))+'&username='+escape($F('username'))+'&userid='+escape($F('userid'));
     var target = 'list';
     var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}
thanks!
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

Figured it out, FYI it uses the Ajax.Responders object.
Post Reply