Forum Moderators: open
-----
function showaction(url) {
document.getElementById('pjactionifrm').contentWindow.document.body.innerHTML='Chargement en cours...';
document.getElementById("pjaction").style.visibility = "visible";
document.getElementById("pjactionifrm").style.width = "800px";
document.getElementById("pjactionifrm").style.height = "500px";
document.getElementById("pjactionifrm").src="?popup=1&pj=" + url;
}
------
So the function must load the requested page into an Iframe.
But my problem is:
If the iframe is already loaded at a page, and the page change, and then the visitor want to go again on the page because it has changed, IE seem to do:
"Well, this page is already loaded in the iframe, so I do not have to reload it"
... but the page has changed.
How can I be SURE that when the function is called, the page will REALLY be loaded?
function showaction(url) {
document.getElementById('pjactionifrm').contentWindow.document.body.innerHTML='Chargement en cours...';
document.getElementById("pjaction").style.visibility = "visible";
document.getElementById("pjactionifrm").style.width = "800px";
document.getElementById("pjactionifrm").style.height = "500px";
frames['pjactionifrm'].location.href="?popup=1&pj=" + url;
//document.getElementById("pjactionifrm").src="?popup=1&pj=" + url;
}
(the new line require the name attribute, not the id.. but I've setted both with the same value)
the iframe seem to really reload this time.