T
troytabor
I was having an issue at www.logolounge.com where the form in the
bottom frame was no longer accessible through javascript in FireFox
1.5.0.8. I found the solution and wanted to share it. The previous
code, which no longer works in FireFox, to access the bottom frames
form is as follows:
function addBox(a) {
URL = "to_box.asp?a=" + a+ "&b=" +
top.bottomFrame.frmBoxNames.selID.options[top.bottomFrame.frmBoxNames.a.selectedIndex].value;
top.bottomFrame.location.href = URL
}
and the new, fully funcitoning in both IE and FireFox code is:
function addToLightbox(a) {
URL = "to_box.asp?a=" + a+ "&b=" +
top.frames[1].document.forms[0].selID.options[top.frames[1].document.forms[0].a.selectedIndex].value;
top.bottomFrame.location.href = URL
}
As you can see, I had to access the frames and forms arrays in order to
get it to work. The named frame (bottomFrame) properties are no longer
availalbe to me in FireFox.
Troy
bottom frame was no longer accessible through javascript in FireFox
1.5.0.8. I found the solution and wanted to share it. The previous
code, which no longer works in FireFox, to access the bottom frames
form is as follows:
function addBox(a) {
URL = "to_box.asp?a=" + a+ "&b=" +
top.bottomFrame.frmBoxNames.selID.options[top.bottomFrame.frmBoxNames.a.selectedIndex].value;
top.bottomFrame.location.href = URL
}
and the new, fully funcitoning in both IE and FireFox code is:
function addToLightbox(a) {
URL = "to_box.asp?a=" + a+ "&b=" +
top.frames[1].document.forms[0].selID.options[top.frames[1].document.forms[0].a.selectedIndex].value;
top.bottomFrame.location.href = URL
}
As you can see, I had to access the frames and forms arrays in order to
get it to work. The named frame (bottomFrame) properties are no longer
availalbe to me in FireFox.
Troy