When I used the js setTimeout function in my code, it worked perfectly in Firefox by reloading within seconds. However, the same code did not work in IE. I tried changing the method to 'POST', but received an error stating that the request was not supported. So, I changed it back to 'GET'. Any suggestions on how to make it work in all browsers?
function getCallDetails(cId){
$.ajax( {
url : 'callInfo.html?cId='+cId,
method : "GET",
dataType: "json",
success : function(data) {
callResult=data.rows;
showCallDetails(callResult,cId);
},
failure : function(form, action) {
}
});
window.setTimeout(getCallDetails, 1000,[cId]);
}