SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Frame re-sizing in Netscape 6
-
Aug 23, 2001, 02:22 #1
- Join Date
- May 2001
- Location
- Carshalton, UK
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Frame re-sizing in Netscape 6
I am trying to get frame re-sizing to work in Netscape 6, using the following JavaScript function:
function bannerframesize()
{
if (!document.all)
{top.document.getElementById("cars_r_set").rows="40,*"}
else
{top.document.all.cars_r_set.rows="40,*"}
}
The document.all method works for IE4 & IE5/5.5 and the document.getElementById method works with IE5.5 (I've proved this, although in the above function the document.all would take precedence with IE5/5.5), but it does not work with Netscape 6 (I can read the rows property value using this method, I just can't write to it). I've tried using both top.document.... and parent.document....
My JavaScript Bible (by Danny Goodman) states that the getElementById should work with Netscape 6 and that one can read AND write the <FRAMESET> rows property in Netscape 6.
Any suggestions?
-
Aug 24, 2001, 12:08 #2
I'm just curious, but how did you make your post be a "help me" post?
-
Aug 25, 2001, 02:07 #3
- Join Date
- May 2001
- Location
- Carshalton, UK
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Disk-t
I'm just curious, but how did you make your post be a "help me" post?
-
Aug 25, 2001, 10:33 #4
- Join Date
- Jul 1999
- Location
- SC, USA
- Posts
- 390
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The moderators here just bump up questions, hoping someone will come answer them. Anyway, you can try:
Code:top.document.getElementById("cars_r_set").setAttribute("rows","40,*");
Moderator at www.javascriptcity.com/forums/
-
Aug 26, 2001, 08:33 #5
- Join Date
- May 2001
- Location
- Carshalton, UK
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Arielladog
Code:top.document.getElementById("cars_r_set").setAttribute("rows","40,*");
Anyone else got any other ideas?
-
Oct 3, 2001, 00:59 #6
- Join Date
- May 2001
- Location
- Carshalton, UK
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have now been informed (by Danny Goodman's site) that the problem I've encountered is a bug in both NN6 & NN6.1
Apparently NN won't resize nested frames (from JavaScript at least).
I read somewhere that Netscape (with NN6) might make in roads back against IE. I just can't see it myself - I've encountered so many problems.
Bookmarks