S
Scott
Hello All,
I've been reading all of the various issues with Iframes in netscape.
I have tried all of the various fixes posted, and have even
implemented both an iframe and ilayer. My problem is that no matter
which i use, i can access the src before and after i change it, but
the page never displays. in IE6 it works no matter how i access it.
here is the code that is changing it:
function InternalNav(sPage) {
//this is called only by clicking a link on the page, no outside will
use this
//first see if the page is the home page...
if (sPage =="home") {
document.getElementById("Content").style.display="none";
document.getElementById("ContentNet").style.display="none";
document.getElementById("Main").style.display="";
}
else {
if (document.all) {
document.getElementById("Content").style.display="";
}
else {
document.getElementById("ContentNet").style.display="";
}
document.getElementById("Main").style.display="none";
}
//navigate the iframe
var sURLSrc = "";
sURLSrc = sPage + ".htm";
alert(document.getElementById("ContentFrameNet").src);
if (document.getElementById("ContentFrameNet")) {
document.getElementById("ContentFrameNet").src = sURLSrc;
alert(document.getElementById("ContentFrameNet").src);
}
else {
document.layers["ContentFrame"].load(sPage + ".htm",100);
}
//change the images
TurnOffImages(sPage);
return;
}
'=====================================================
here is the code for the iframe/ilayer
<p id="Main" style="display:">
Main Content Here
</p>
<p id="Content" style="display: none">
<iframe align="top" frameborder="0" id="ContentFrame"
name="ContentFrame" src="untitled.htm" scrolling="auto" width="100%"
height="100%"></iframe>
</p>
<p id="ContentNet" style="display: none">
<ilayer top="0" left="0" visibility="show" src="untitled.htm"
width="100%" height="100%"></ilayer>
</p>
'===========================================================
any help would be greatly appreciated.
tia
Scott
I've been reading all of the various issues with Iframes in netscape.
I have tried all of the various fixes posted, and have even
implemented both an iframe and ilayer. My problem is that no matter
which i use, i can access the src before and after i change it, but
the page never displays. in IE6 it works no matter how i access it.
here is the code that is changing it:
function InternalNav(sPage) {
//this is called only by clicking a link on the page, no outside will
use this
//first see if the page is the home page...
if (sPage =="home") {
document.getElementById("Content").style.display="none";
document.getElementById("ContentNet").style.display="none";
document.getElementById("Main").style.display="";
}
else {
if (document.all) {
document.getElementById("Content").style.display="";
}
else {
document.getElementById("ContentNet").style.display="";
}
document.getElementById("Main").style.display="none";
}
//navigate the iframe
var sURLSrc = "";
sURLSrc = sPage + ".htm";
alert(document.getElementById("ContentFrameNet").src);
if (document.getElementById("ContentFrameNet")) {
document.getElementById("ContentFrameNet").src = sURLSrc;
alert(document.getElementById("ContentFrameNet").src);
}
else {
document.layers["ContentFrame"].load(sPage + ".htm",100);
}
//change the images
TurnOffImages(sPage);
return;
}
'=====================================================
here is the code for the iframe/ilayer
<p id="Main" style="display:">
Main Content Here
</p>
<p id="Content" style="display: none">
<iframe align="top" frameborder="0" id="ContentFrame"
name="ContentFrame" src="untitled.htm" scrolling="auto" width="100%"
height="100%"></iframe>
</p>
<p id="ContentNet" style="display: none">
<ilayer top="0" left="0" visibility="show" src="untitled.htm"
width="100%" height="100%"></ilayer>
</p>
'===========================================================
any help would be greatly appreciated.
tia
Scott