Dynamic Ajax Content script
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
I've recently started using the above script to create dynamic content on one of my websites. It works very well in Firefox, but I'm having problems in IE and Opera.
Basically the website is a random fortune cookie generator - a very stripped down test version can be seen at http://fortunecookie.rleeden.no-ip.com/ajax.php.
In Firefox everytime you click the Fortune link a new fortune cookie is displayed - the php script fortune.php generates a new fortune. But this doesn't happen in IE or Opera as the output from the fortune.php script is getting cached. I can see from my apache logs - the fortune.php script is only called once. I can also see this when clearing my IE cache, a new fortune is displayed.
Anybody know how to prevent this caching problem? Any help would be appreciated.



Reply With Quote

Bookmarks