jquery - IE 10 wont reload my directory proper after uploading file with PHP -
i having headaching trouble ie 10. (who doesn't)
i have upload function, user can upload files (pdf's) admin part of website.
after upload completed use jquery show contents of dir through jquery.post action, in effect reloading dir contents , printing them screen.
i other browsers (tested opera, chrome, firefox) works out fine. in ie10 contents of directory printed screen seems cached version. using ftp program can verify file uploaded ie10, won't read updated contents. have restart ie10 browser in order reload proper.
any ideas on how force ie10 read contents scratch or maybe solution?
code reload
<table> <?php $dir_handle = opendir("../../images/certificates"); while (($entry = readdir($dir_handle)) !== false){ // show pdf's $filetest = preg_match('/(.pdf|.pdf)$/',$entry); if ($filetest){ echo "<tr>"; echo "<td rel='{$entry}'><img class='pdfdownloadicon imageicon' src='images/pdfdownload.png' />{$entry}</td>"; echo "</tr>"; } } $typeoffileshow = "document"; ?>
script executes above code
function showfilebrowser(path) { currenttypeoffileshow = path; $("#fileselectbox").load("includes/filebrowser."+path+".inc.php"); $("#filebrowser").slidedown('fast'); }
through jquery.post action
.load('...')
uses get
request unless give object second parameter.
use empty object second parameter send uncached post
request
$("#fileselectbox").load("includes/filebrowser."+path+".inc.php", {});
or set cache: false
default setting with
$.ajaxsetup({ cache: false });
Comments
Post a Comment