Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts

    FF vs. IE window resizable

    Hi, last i heard that FF does not recognize the resizable attribute for window open method. So the result is that IE opens my chat box perfect size and FF opens the window the same size as the other windows and then the user has to drag the chat box over to make it smaller.

    Am i wrong on this or has there since been a work around or fix for this.

    Thanks so much.

  • #2
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts
    sorry im tired, if you could please move this to javascript area, so very sorry about posting it here i was not paying attention.


    thanks

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,034
    Thanks
    23
    Thanked 589 Times in 588 Posts
    I don't think this was ever true. I have never had a problem with this. Just try this in FF:
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function openWin()
    {
    myWindow=window.open('','','width=200,height=100,top=300');
    myWindow.document.write("<p>This is 'myWindow'</p>");
    myWindow.focus();
    }
    </script>
    </head>
    <body>
    
    <input type="button" value="Open window" onclick="openWin()" />
    
    </body>
    </html>

  • Users who have thanked sunfighter for this post:

    durangod (10-09-2012)

  • #4
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts
    Yep it was me, i guess im getting old and my eyes are playing tricks on me, when i posted this function awhile back i distinctly remember checking every bit of it to make sure it was perfect so that i would never have to come back to it.

    And sure enough when i saw your example and it looked alot like mine in principle i decided to go take a look, and sure enough i missed a freaken comma in the attributes right after resizable, grrrrrrrr lol

    Here is what have now after the correction.

    Code:
    function shout(){
    shoutwindow = window.open("<?=$CONST_ROOT?>/shout/chat.php", "shoutwindow", "location=0,status=0,scrollbars=0,menubar=0,resizable=0,width=300,height=310");
    }
    Here is the interesting thing, the window now loads at the size specified so that issue has been fixed with the comma fix. But FF does not recognize the resizable because i can still drag the window any size i want in FF but in IE cannot drag the window larger. So that part still seems to be the case.

    But the load size was the issue i was most concerned about i just find the other part interesting.

    Thanks so much, my foot tastes horrible by the way lol....

  • #5
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,034
    Thanks
    23
    Thanked 589 Times in 588 Posts
    I thought you wanted a resizable window. My bad. Sorry, your right, firefox will not remove the resize tab. I have spent some time on the FF site, but have not come up with any work around.


  •  

    Posting Permissions

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