I’m not using JQuery or any other library. I simply have a PHP file which spits out a JSON result and my javascript acts accordingly.
Unfortunatly, I’ve just spent an hour banging my head against a wall trying to figure out why I’m getting an ‘undefined’ for one of my variables where I KNOW I’ve set it in my php output.
I finally figured it out: I went straight to the php page in IE and found that it had a cached result (i.e., before I added that variable to the JSON string). As soon as I hit refresh, it got the new page and my code all suddenly started working.
How can I force IE (and other browsers) not to cache my AJAX pages, since they’re likely going to change very frequently anyway?
or