HKMD

Hi,

I have the below code working in IE 6, but not in IE7. any inputs on this issue on IE 7 is helpful.

<META HTTP-EQUIV=Refresh CONTENT="1; URL=javascript:document.forms[0].submit();">

Regards,

HKM



Re: Internet Explorer Web Development <META HTTP-EQUIV=Refresh issue with IE 7

Jabberwo

Ya,

I'm seeing pretty much the same thing. The new wait indicator in the tab sits and spins, the javascript method is never executed. Looks like a serious bug. I have to try and work-around it using setInterval instead.

cheers,

Chuck






Re: Internet Explorer Web Development <META HTTP-EQUIV=Refresh issue with IE 7

Patrick Willart

It can be enabled/dsiabled in the Internet Security settings dialog. It's disabled per default.

Click Custom level.

Allow META REFRESH Yes/No





Re: Internet Explorer Web Development <META HTTP-EQUIV=Refresh issue with IE 7

John Sudds - MSFT

Hmmm... Allow META REFRESH option is set to Enable by default in all security zones except Restricted. I strongly suspect the use of the javascript: protocol.

In any case, setInterval is a good workaround. To get the best cross-platform support, I would use both idioms, and let the browser decide which it would rather do.





Re: Internet Explorer Web Development <META HTTP-EQUIV=Refresh issue with IE 7

Alaln O'Neill

I have experienced the same problem, and followed through with some testing in a development environment.

In IE7 with META REFRESH enabled, the page refresh works successfully when a HTTP: style URL is defined, but not a javascript: style URL.

<meta http-equiv="Refresh" content="3;url=http://mytest.local"> -- Works fine

<meta http-equiv="Refresh" content="3;url=javascript:refreshPage();"> -- Doesn't work

I have the IE7 security in this test set to "Low", and java script on the rest of the page is all working as expected.

Both forms of the script work fine under IE6.

I haven't been able to determine or find any information as to whether the Javascript: url format has been specifically disabled in IE7 META tags, or whether there is a setting (registry or IE security) that can be changed to allow this to work.

I'm not able to access the source code of the application that is causing our problem - so I am restricted to finding a resolution within the browser.

I would be grateful for any suggestions or additional information.

Thanks,

Alan





Re: Internet Explorer Web Development <META HTTP-EQUIV=Refresh issue with IE 7

Kelonio76

Alan:

I had the same problem... So I used Javascript to solve that!!!

Here's the code:

In the HEAD section:

<script language=JavaScript>
function Refresher(t) {
if(t) refresh = setTimeout("document.location='http://www.mysite.com';", t*1000);
}

</script>

And I call the script inside the BODY tag:

<BODY onLoad="Refresher(20)">

Where the parameter is the amount of seconds that IE should wait until refresh. I hope you find it useful...

--

http://kelonio76.spaces.live.com/

PS: Sorry for my english.... I know I have to improve it!!