www.webdeveloper.com
Results 1 to 6 of 6

Thread: Resize problem in Netscape browser only

  1. #1
    Join Date
    Nov 2002
    Posts
    333

    Resize problem in Netscape browser only

    My Cold Fusion page will not resize in Netscape 4.77 browser. It has no problem with IE but in Netscape 4.77 it gives a blank browser screen after I resize it. I then have to hit the Reload button to get my Cold Fusion page back up.

    Any suggestions on how I can correct this problem in Netscape 4.77?? Is there something in Javascript I can do to automatically reload screen after a resize???

  2. #2
    Join Date
    Nov 2002
    Posts
    984
    You can try this

    <script type="text/javascript">
    <!--
    NS4 = document.layers;
    if (NS4) {
    origWidth = innerWidth;
    origHeight = innerHeight;
    }

    function reDo() {
    if (innerWidth != origWidth || innerHeight != origHeight)
    location.reload();
    }

    if (NS4) onresize = reDo;
    //-->
    </script>

    or a bit shorter
    <script type="text/javascript">
    if(document.layers){origWidth=innerWidth;origHeight=innerHeight;onresize=function(){if(innerWidth!=o rigWidth||innerHeight!=origHeight)location.reload()}}
    </script>
    Last edited by Stefan; 12-02-2002 at 06:46 AM.
    // Stefan Huszics

  3. #3
    Join Date
    Nov 2002
    Posts
    333
    Thanks!

  4. #4
    Join Date
    Nov 2002
    Posts
    333
    If possible can you please explain what these variables represent? Are they x and y cordinates and what browser part do they represent??


    origWidth = innerWidth;
    origHeight = innerHeight;

  5. #5
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by florida
    If possible can you please explain what these variables represent? Are they x and y cordinates and what browser part do they represent??


    origWidth = innerWidth;
    origHeight = innerHeight;
    innerWidth and Height is the actual useable space in pixels in the browser window.
    // Stefan Huszics

  6. #6
    Join Date
    Nov 2002
    Posts
    333
    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles