programmher
Programmer
All,
I have the above script in an event that successfully works when I test it in my test environment. Below is the entire script:
function CloseMe()
{
window.opener.reload(true)
window.close();
}
</script>
My dilemna is that when I move this code to my live site, my page reloads, but the information does not refresh! I check my database and the records are updated. The reloaded page just does not reflect the changes UNLESS you click the browser refresh button. Then the page reloads a second time with the updated information.
I tried window.opener.refresh. This worked in testing but not on my live site. So far, the below seems to work on the live site:
function CloseMe()
{
window.opener.navigate(window.opener.location.href);
window.close();
}
</script>
Can anyone explain what possible differences could exist between my test site and live site? My network engineers assure me the environments are identical.![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
I have the above script in an event that successfully works when I test it in my test environment. Below is the entire script:
function CloseMe()
{
window.opener.reload(true)
window.close();
}
</script>
My dilemna is that when I move this code to my live site, my page reloads, but the information does not refresh! I check my database and the records are updated. The reloaded page just does not reflect the changes UNLESS you click the browser refresh button. Then the page reloads a second time with the updated information.
I tried window.opener.refresh. This worked in testing but not on my live site. So far, the below seems to work on the live site:
function CloseMe()
{
window.opener.navigate(window.opener.location.href);
window.close();
}
</script>
Can anyone explain what possible differences could exist between my test site and live site? My network engineers assure me the environments are identical.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)