Hi Marco. I now that the way prevent IE caching AJAX call is to link to parameters one parameter which will be complete random. Bur here is much important question. I using ajax call to connect url which is accesible only if user is logged (i mean there is a user session). Somethimes session expired and url is not accesible and there is redirect to other url i see that server return code 302 but i see that xmlHttpResponse object has status 200!!! So what I'm doing wrong? Or maybe this is a correct status because AJax call return html - not from url that wass calling but return html properly.
Dnia 21-02-2006 o godz. 12:14 Marco M. Jaeger napisał(a): > 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] 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@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > ---------------------------------------------------- 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=670 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs