AJAX javascript IE6/7 cache issue: what is the status now ?

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.
 
G

Gregor Kofler

SL Da meinte:
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.

You could use a POST request.

Gregor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top