Page 1 of 1

Using prototype to show status while doing ajax calls

Posted: Sat Nov 18, 2006 8:53 pm
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!

Posted: Sat Nov 18, 2006 9:42 pm
by GeXus
Figured it out, FYI it uses the Ajax.Responders object.