You should be able to do something like this:
function _updateFileInfo(id,i) {
var rand = parseInt(Math.random()*99999999); // chache buster
var url = ''./scripts/getInfo.php'';
var param = ''id='' + id +
''&i='' + i;
var ajax = new Ajax.Updater(''fm-infoContent'', url, {
method:''post'',
//evalScripts: true,
parameters:param,
asynchronous:true,
onLoading:function(request) {
Element.show(''fm-loading'')},
onComplete:function(request) {
Element.hide(''fm-loading'');
//updateValues();
},
onFailure:_reportError
}
)
}
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]
On Behalf Of Grzesiek
Slusarek
Sent: Tuesday, February 21, 2006 10:56 AM
To: rails-spinoffs
Subject: [Rails-spinoffs] Ajax reqest and http status
Hi all. I ''m using Ajax request on my site and i need to show some
message
wneh AJAX call is running, (sometimes it happen so slow). I find that object
AJAX.RESPOND is very usefull here, but sometimes when i need to do AJAX CALL
my ajax call is redirect and i want to when it happen, is there way to find
status of ajax call? i don''t know where I can find this property in
AJAX.Request, Ajax.Responder or maybe it doesn''t exist? I know that
using
clear xmlhttprequest there is a property called
request.status. And one thing more - i hear that IE is caching AJAX call.
That mean if something is changed on serverside browser still use data from
cache. Is there a way to avoid this? i hear that other ajax library use
uniqueParameter to force browser not caching ajax call.
Best wishes
Gregor
----------------------------------------------------
Stacey Kent na Ladies Jazz On Tour
Koncerty w Zabrzu, Warszawie i Gdańsku.
Więcej szczegółów:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fkent.html&sid=6
70
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs