SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Enthusiast
    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?

  2. #2
    Spam Can Kill!!! Disk-t's Avatar
    Join Date
    Jul 2001
    Location
    n/a
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm just curious, but how did you make your post be a "help me" post?

  3. #3
    SitePoint Enthusiast
    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?
    Sorry, don't understand your question. Could you explain?

  4. #4
    JavaScript Guru (Big Ego) Arielladog's Avatar
    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,*");
    aDog

  5. #5
    SitePoint Enthusiast
    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,*");
    Tried your suggestion, but exactly the same results as before (i.e. works with IE5.5 but not NN6).

    Anyone else got any other ideas?

  6. #6
    SitePoint Enthusiast
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •