Forum Moderators: open
ok....
i am using a JSP, server, database with Mochikit and AJAX.
Problem is when a user changes something in IE, it updates the database but for some reason it does not display the new information but the original. in firefox this all works perfectly. does IE have a problem with setAttribute and AJAX requests or is there something wrong with caching?
been stuck on this for two days now and have made no progress so any help would be awesome. the project is a chat program that pulls information and displays it on a web application but if you make any kind of change from the client (openfire chat server) or on the web app itself it does not make the change.
thanks again,
-dan
var d = new Date();
var url = "http://www.example.com?ck=" + d.getTime();
If you use that for each AJAX request, then each time it will be appending on a querystring with ck=n (where n is the current time stamp).
[edited by: Fotiman at 6:29 pm (utc) on Aug. 21, 2008]
function getNames()
{
log ("getNames called: ", timed);
var url = "ESignOutServlet";
var ajaxRequest = MochiKit.Async.doSimpleXMLHttpRequest(url, {'action':'getNames'});
ajaxRequest.addCallbacks(displayNames, handleAjaxError);
}
so when i do add the date i would get an error saying hey this isnt here.