FF has always been more reluctant to reload pages than IE. There is some sort of logic involved, intended to avoid an endless loop of reloading, but it often goes overboard, erring on the side of caution. That said, the code you supplied makes it look as though the page always reloads, regardless of whether or not the PHP generated code is run. If activate() is called onload, it would make the likelihood of a loop very high.
In any case, it can often help to have a separate function for the reloading, and to use a short timeout to call it:
Code:
function doit(){
window.location.reoad(true);
};
Then wherever you want a reload use:
Code:
setTimeout('doit()', 20);
But, as I said, your code looks as though activate always reloads the page. If that is not your intention, try it like:
Code:
function activate(){
if (confirm("Do you realy want to activate?")){
<?php
//some php code
?>
window.location.reload(true);
}
return true;
};
Finally though, since we cannot see what the PHP code is doing, we have no way of knowing for sure what the problem really is:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks