Passing callback parameters to setTimeout() does not work in IE?

I used the code in js setTimeout function it is working in firefox ;i,e it is reloaded with in seconds. but not working in IE. I changed the method as 'POST', but not request not supported then it changed again in to 'GET'. Any solution ?

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]); }



window.setTimeout(function() {
}, 1000);

Hope it helps


You're using a non-IE-compatible version of setTimeout. In IE, there is no way to pass parameters to the callback.

Also, calling setTimeout there is very wrong; you will get exponentially more concurrent requests because each call generates two more calls.


Try the following instead:

window.setTimeout(function() { getCallDetails(cId); }, 1000);

Also I would move that line into the success callback.


this is due to cache problem in IE

this is solved by

function getCallDetails(cId){ $.ajax( { url : 'callInfo.html?cId='+cId+'&randomNo='+ Math.rand(), method : "GET", dataType: "json", success : function(data) { callResult=data.rows; showCallDetails(callResult,cId); }, failure : function(form, action) { } }); window.setTimeout(function() { getCallDetails(cId); }, 1000); }

and random no ignored @ server side.


  • How to extract source from Google search result “20-pack” entry?
  • How to get parent id(root parent) from child id [duplicate]
  • Problem fetching XML data using Expedia API and curl
  • Click button with javascript
  • twisted.internet.error.ConnectError when run scrapy spider
  • formediting modals shows at wrong position
  • Extjs, handling success or failure when doing a standard submit in a form
  • How to implement simple validation in Scala
  • Converting datatype Char to Nvarchar
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • How to programatically 'login' a user based on 'remember me' cookie when using j
  • How to autopopulate a field in SugarCRM form
  • Regex to match a string not followed by anything
  • Symfony 2. CSRF token is invalid
  • IE11 throwing “SCRIPT1014: invalid character” where all other browsers work
  • c# open webrowser in many tab
  • pyodbc doesn't report sql server error
  • Z3: Convert between FP and BitVector?
  • Adjust width of select element according to selected option's width
  • Textfile Structure (tables)
  • chrome.tabs.executeScript only fires when the Developer Console is open
  • Play WS (2.2.1): post/put large request
  • Django rest serializer Breaks when data exists
  • Get data from AJAX - How to
  • Recording logins for password protected directories
  • Different response to non-authenticated users and AJAX calls
  • Bug in WPF DataGrid
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • jQuery tmpl and DataLink beta
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How to get icons for entities from eclipse?
  • SQL merge duplicate rows and join values that are different
  • AngularJs get employee from factory
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • How to set the response of a form post action to a iframe source?
  • Change div Background jquery
  • Is it possible to post an object from jquery to bottle.py?
  • JaxB to read class hierarchy