S
SL Da
Problem:
I have a button that user can click, an AJAX request will be sent to a
server. The server will respond with an XML file.
It is working on FireFox and Opera, but on IE6/7 the button works only
once. I understand that it is the cache problem.
Someone suggested to add a randon argument every time a request is
made; it does not work in my case.
I read a complicated example by Dustin Diaz, but I don't really
understand : http://www.dustindiaz.com/faster-ajax/
Someone suggested to create a new GetXmlHttpObject every time a
request is made. I create 5 new objects, and they all work for the 1st
5 calls. But as soon as I re-use one of them, it stops working.
Question:
What is the standard way to overcome this problem now ? Any tips ?
Thanks.
I have a button that user can click, an AJAX request will be sent to a
server. The server will respond with an XML file.
It is working on FireFox and Opera, but on IE6/7 the button works only
once. I understand that it is the cache problem.
Someone suggested to add a randon argument every time a request is
made; it does not work in my case.
I read a complicated example by Dustin Diaz, but I don't really
understand : http://www.dustindiaz.com/faster-ajax/
Someone suggested to create a new GetXmlHttpObject every time a
request is made. I create 5 new objects, and they all work for the 1st
5 calls. But as soon as I re-use one of them, it stops working.
Question:
What is the standard way to overcome this problem now ? Any tips ?
Thanks.