Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works in IE not in FireFox.

Status
Not open for further replies.

sabev

Programmer
Sep 27, 2002
47
US

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.

Thanks
 
Hi,

Thanks for the suggestions. I tried both and they both error out in IE.

top.frames['MapSomedataFS'].rows = "*,170,0,0";

Produces the error - top.frames['MapSomedataFS'] is not an object

parent.document.getElementById('MapSomedataFS').setAttribute('rows','25%,25%,25%,25%',0);

Produces the error – ‘parent.document.getElementById('MapSomedataFS')(…)’ is not an object’
 
It's only available on our intranet at the moment, but here is the frameset code.

Sorry it's hard to read not sure how I should format it for this forum.


</HEAD>
<FRAMESET ROWS="' + (35+addNS) + ',*" FRAMEBORDER="NO" FRAMESPACING="0" onload="doIt()" BORDER="1"' + moreStuff + '>
<FRAME NAME="ToolFrame" SRC="blank.htm" MARGINWIDTH="5" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="1" NORESIZE>
<FRAMESET COLS="' + (175+addNS) + ',*,110" FRAMEBORDER="NO" FRAMESPACING="0" BORDER=0>
<FRAMESET rows="40,*" FRAMEBORDER="0" BORDER=0 FRAMESPACING="0">
<FRAME NAME="ModeFrame" SRC="bottom.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="NO" RESIZE="YES">
<FRAME NAME="TOCFrame" SRC="blank.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="Yes" FRAMEBORDER="0" NORESIZE FRAMESPACING="0" BORDER="0" RESIZE="YES">
</FRAMESET>
<FRAMESET rows="*,0,0,0" ID="MapSomdataFS">
<FRAME NAME="MapFrame" SRC="MapFrame.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER=No" RESIZE="YES" onresize="reloadApp()">
<FRAME NAME="TextFrame" SRC="blank.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="Auto" FRAMEBORDER="NO" RESIZE="YES">');
<FRAME NAME="PostFrame" SRC="' + formURL + '" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="0" NORESIZE FRAMESPACING="0" BORDER="0">
<FRAME NAME="BottomFrame" SRC="bottom.asp" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="NO" RESIZE="YES">
</FRAMESET>
<FRAME NAME="QueryFrame" SRC="ParcelQuery.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="NO" RESIZE="YES">
</FRAMESET>
</FRAMESET>
 
Code:
<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>

That should be easier to read.

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.



 

Aaah - if the code is not in a frame off of the main frameset, you'd need to adjust the number of times you used "parent".

Hope this helps,
Dan


The answers you get are only as good as the information you give!

 
Well, I've tried.....

parent.parent.parent.document....
parent.parent.document....
parent.document...

and

document...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top