joshualtools
Programmer
Is there something I should know about setting a location of a frame window in Netscape 7?
What I am doing is using a javascript function to do two simple things: "pop-up" a hidden frame and then change the location of that frame to a parameter I pass into the function.
What happens is that when I first call the function below, the "pop-up frame" appears, but the location of that frame is unchanged, it remains set to whatever I seeded it with in the <FRAMESET>. However, after that initial call, all is well and calling that same function loads the proper location in the frameset.
The function looks like this:
//Popup-Frame Function
function popFrameWindow(URL){
if (NS4) {
popNewWindow(URL); // Netscape 4 doesn't allow body.rows to be set, this function is a simple window.open
} else {
window.parent.parent.frames[1].location = URL;
window.parent.parent.document.body.rows = '*,*';
}
}
I've tried location.replace(URL) and I've tried adding location.reload() as well.
Any thoughts? It's frustrating especially since it's only netscape 7 where this occurs, before I added the condition for Netscape 4, there was no problem with that .location assignment.
Thanks in advance.
What I am doing is using a javascript function to do two simple things: "pop-up" a hidden frame and then change the location of that frame to a parameter I pass into the function.
What happens is that when I first call the function below, the "pop-up frame" appears, but the location of that frame is unchanged, it remains set to whatever I seeded it with in the <FRAMESET>. However, after that initial call, all is well and calling that same function loads the proper location in the frameset.
The function looks like this:
//Popup-Frame Function
function popFrameWindow(URL){
if (NS4) {
popNewWindow(URL); // Netscape 4 doesn't allow body.rows to be set, this function is a simple window.open
} else {
window.parent.parent.frames[1].location = URL;
window.parent.parent.document.body.rows = '*,*';
}
}
I've tried location.replace(URL) and I've tried adding location.reload() as well.
Any thoughts? It's frustrating especially since it's only netscape 7 where this occurs, before I added the condition for Netscape 4, there was no problem with that .location assignment.
Thanks in advance.