fnReloadAjax() and IE

fnReloadAjax() and IE

kellyjandrewskellyjandrews Posts: 15Questions: 0Answers: 0
edited November 2009 in General
Trying to utilize the plug in fnReloadAjax. It works flawlessly in Firefox (of course). The data does not seem to be reloading in IE.

After some searching I tried the random number at the end of the url I am passing in the function, but it gives me the same result.

Basically I am passing a call to a processor page - the data gets added - but the table doesn't refresh.
If I reload the page - the data is there as expected. It is not however showing asynchronously.

Any thoughts? I can't give a link publicly on this one, and the code is too convoluted to be helpful.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi kellyjandrews,

    A couple of options

    1. You've tried this one - adding a random GET variable to the URL
    2. Use a POST request rather than a GET (just a small modification to the plug-in needed).
    3. Check that the JSON return is valid using www.jsonlint.com

    Hopefully one of these will do the trick,
    Allan
  • kellyjandrewskellyjandrews Posts: 15Questions: 0Answers: 0
    [code]
    fnReloadAjax("http://myurl.com?qs=something&;dummy=" + new Date().getTime()+"
    [/code]

    I suspected it was the cache - it just causes headaches - yes?
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Oh yeah, it causes headaches! I remember even the Wikipedia article about XHR mentioned this (although it appears to have been removed now). It's a common issue with IE - either use POST or a random variable to get around it...

    Regards,
    Allan
This discussion has been closed.