0

I am running a PHP file so it's contents are in a div - then displaying the contents in a bootstrap modal. For some reason IE version 9 and 11 do not refresh the div and the modal shows old data. All other browsers work nicely.

function showRealSpadTable(realSpadDetails) {
        var tableDetails = realSpadDetails;

        $.post("realSpadTable.php", {tableDetails: tableDetails}, function () {    
                $("#realSpad").load("realSpadModal.php", function() {                             
                        $('#realSpadModal').modal('show');
                });
        });
    }
Siguza
  • 21,155
  • 6
  • 52
  • 89
Kegs78
  • 11
  • 2
  • Maybe IE is caching the result of `$("#realSpad").load(...)`. Please check the answer in the following question: http://stackoverflow.com/questions/168963/stop-jquery-load-response-from-being-cached I think you have to use `$.ajax()` instead an set `cache` to `false`. – mario.van.zadel Aug 17 '15 at 06:28
  • logical explanation but it still seems to have a problem. I've tried disabling the caching using the methods suggested. – Kegs78 Aug 17 '15 at 07:31
  • Ok I have solved it by changing the browser history settings to check for newer versions of stored pages every time it loads a page. – Kegs78 Aug 17 '15 at 07:48

0 Answers0