Forum Moderators: open
Any idea why is stops refreshing in netscape and is there a way around that. See below for the test example...
Thanks
here is page2.htm...
<HTML>
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META http-equiv=Refresh content=4>
</head>
<BODY>
Page2
</body>
</HTML>
here is page1.asp....
<html>
<head>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function maximize(){
setminmax( "iframe", "height", "445px" );
}
function setminmax( id, property, value )
{
if (navigator.userAgent.indexOf("MSIE") == -1)
{
//netscape navigator
var styleObject = document.getElementById( id );
if (styleObject!= null)
{
styleObject = styleObject.style;
styleObject[ property ]=value;
}
}
else
{
//IE
document.all[id].style[property] = value;
}
}
//-->
</SCRIPT>
</head>
<body>
<table border="3"><tr><td>
<IFRAME id=iframe style=MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px name=iframe align=center marginWidth=0 marginHeight=0 src=page2.htm frameBorder=0 width=490 scrolling=no height=185 ></IFRAME>
</td></tr></table>
<A id=maximize href="javascript:maximize();"><font color="#000000">Maximize</font></A>
</BODY>
function maximize(){
setminmax( "iframe", "height", "445px" );
iframe.document.reload();
}
<html>
<head>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function maximize(){
setminmax( "myframe", "height", "445px" );
myframe.document.reload();
}
function setminmax( id, property, value )
{
if (navigator.userAgent.indexOf("MSIE") == -1)
{
//netscape navigator
var styleObject = document.getElementById( id );
if (styleObject!= null)
{
styleObject = styleObject.style;
styleObject[ property ]=value;
}
}
else
{
//IE
document.all[id].style[property] = value;
}
}
//-->
</SCRIPT>
</head>
<body>
<table border="3"><tr><td>
<IFRAME id=myframe style=MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px name=myframe align=center marginWidth=0 marginHeight=0 src=page2.htm frameBorder=0 width=490 scrolling=no height=185 ></IFRAME>
</td></tr></table>
<A id=maximize href="javascript:maximize();"><font color="#000000">Maximize</font></A>
</BODY>