I tried a Javascript forum to no avail, what say dopers?

I have a frameset with 3 hidden frames using a size of 0 in the rows property (see FRAMESET ID = MapSomedataFS below).

I want to expand the frame “TextFrame” when I load an .htm into it. Fine. The code - parent.MapSomdataFS.rows = “*,170,0,0”; Works fine…… In IE. Won’t work in FireFox. (The code executes as soon as the .htm loads into the frame).

It was recommended that I try - parent.document.getElementById(“MapSomedataFS”).setAttribute(‘rows’,’,170,0,0’,0);
And I did. It fails in IE with the error parent.document.getElementById(…) is not an object.
FRAMESET CODE - (I tried to change the font, and it screwed up all my indents. It’s tabbed out properly before the preview)
<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>

Any ideas?

Thanks

Yea, I’ve run into this. The problem is that IE wants one format of specifying page objects, while Netscape-based browsers such as Firefox want a different format, and the two formats are mutually exclusive. You’ll need to do a browser check and do one OR the other based on which browser is found.

Thanks, I’ll give that a try. I honestly didn’t know that FireFox was Netscape based. :smack:

Man, if that isn’t the mantra for Javascript, I don 't know what is. :smiley:

Could you elaborate? Just a little?

I’m tring to modify a very big out of the box app to fit our needs. I do as many modifications as I can in VBscript (I know it better), but the vast majority of the original app is in javaScript. I think I’ve got a monster on my hands.

Well Javascript is OK if you only need to support ONE version of ONE browser. The problem is, Javascript is NOT generally portable from one browser to another, or one browser version to another. Indeed, a nightmare. I really don’t know what else to say.

But VBscript is way less portable than Javascript.

Thanks for the responses.

One last thing. Does anyone know where the setting in FireFox is for it to check for new versions of web pages? I’m making changes in my code, but FireFox is still bringing up the older/original versions of the code.

Making it a bit hard to trouble shoot :mad:

I don’t know about the setting you are asking about, but try out some of the “Useful META Tags” on this site to see if they help with your caching problem.

To be fair to Javascript, it’s not actually the language that’s different across browsers, it’s the objects available in the browser’s object model, which would be the case no matter what language you were programming in. IE’s “document” object contains a collection called “all”, but Netscape’s doesn’t, for example. That’s not Javascript’s fault.

Thank you Zipper. I’m looking for something like IE 'tools>Internet Options>Settings>Check for newer versions on stored pages.

That Meta tag may do it.

I did find out today, that FireFox does not have the ability to resize frames, after the original is loaded. Without reloading the master frame document.

Maybe a table would be a better idea. If the <TD> and <TR> can be resized.

Could you exaplain what you’re actually trying to do? It’s not clear from your example.

In generally, the only time I’ll use a hidden frame is when I have to transfer data back and forth to a server without the main page reloading and flickering. If it’s just a case of wanting to hide data unless a user chooses to show it, you’d be better off using a DIV and setting its display property to none in Javascript when you want to hide it.

If you want to dynamically build a table, you can use Javascript to insert table rows and columns directly into the object heirarchy.

What exactly is the requirement?