alpine
03-04-2005, 04:31 PM
parent.MapSomedataFS.rows = “*,170,0,0”;
Works in IE, but won’t work in FireFox. MapSomedataFS is a name of a FRAMESET and I need to be able to dynamically resize it.
I get the error – parent.MapSomedataFS has no properties. On the javascript console in FireFox.
<FRAMESET ROWS="35,*">
<FRAME NAME="ToolFrame" SRC="blank.htm">
<FRAMESET COLS="175,*,110">
<FRAMESET rows="40,*>
<FRAME NAME="ModeFrame" SRC="bottom.htm"
<FRAME NAME="TOCFrame" SRC="blank.htm">
</FRAMESET>
<FRAMESET rows="*,0,0,0" ID="MapSomdataFS">
<FRAME NAME="MapFrame" SRC="MapFrame.htm">
<FRAME NAME="TextFrame"SRC="blank.htm">
<FRAME NAME="PostFrame" SRC="blank.htm">
<FRAME NAME="BottomFrame" SRC="bottom.asp">
</FRAMESET>
<FRAME NAME="QueryFrame" SRC="ParcelQuery.htm">
</FRAMESET>
</FRAMESET>
The code - parent.MapSomdataFS.rows = "*,170,0,0"; is located in an .htm file that gets loaded in to the FRAME NAME = "TextFrame" The code runs as soon as it loads.
I have tried both -
parent.document.getElementById("MapSomedataFS").setAttribute('rows','*,170,0,0',0);
and -
top.frames['MapSomedataFS'].rows = "*,170,0,0";
and get the same error.
Any ideas would be greatly appreciated
Works in IE, but won’t work in FireFox. MapSomedataFS is a name of a FRAMESET and I need to be able to dynamically resize it.
I get the error – parent.MapSomedataFS has no properties. On the javascript console in FireFox.
<FRAMESET ROWS="35,*">
<FRAME NAME="ToolFrame" SRC="blank.htm">
<FRAMESET COLS="175,*,110">
<FRAMESET rows="40,*>
<FRAME NAME="ModeFrame" SRC="bottom.htm"
<FRAME NAME="TOCFrame" SRC="blank.htm">
</FRAMESET>
<FRAMESET rows="*,0,0,0" ID="MapSomdataFS">
<FRAME NAME="MapFrame" SRC="MapFrame.htm">
<FRAME NAME="TextFrame"SRC="blank.htm">
<FRAME NAME="PostFrame" SRC="blank.htm">
<FRAME NAME="BottomFrame" SRC="bottom.asp">
</FRAMESET>
<FRAME NAME="QueryFrame" SRC="ParcelQuery.htm">
</FRAMESET>
</FRAMESET>
The code - parent.MapSomdataFS.rows = "*,170,0,0"; is located in an .htm file that gets loaded in to the FRAME NAME = "TextFrame" The code runs as soon as it loads.
I have tried both -
parent.document.getElementById("MapSomedataFS").setAttribute('rows','*,170,0,0',0);
and -
top.frames['MapSomedataFS'].rows = "*,170,0,0";
and get the same error.
Any ideas would be greatly appreciated