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

Thread: Popup resize

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Popup resize

    I am using the following scripts to create a popup abd then have it resize to available screen. It works on some 'puters but not others and I can't see the rean why. I would appreciate help from you wizards.

    <SCRIPT LANGUAGE="JavaScript"><!--
    myHandle = window.open('racslogin.html','racsmain','width=400,height=400, status, resizable, scrollbars, toolbar');
    if (!myHandle.opener)
    myHandle.opener = self;
    //--></SCRIPT>
    <script language="JavaScript"><!--
    if (window.screen) self.resizeTo(screen.availWidth,screen.availHeight);
    //--></script>

    The Dingbat.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    but not others
    which ones?

    Hm ... try set the attributes'value:
    status=1 or yes / status=0 or no
    resizable=1 or yes / resizable=0 or no
    ..
    ..
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    when you say it works on some computers, do you mean different browsers??

    Try playing around with

    window.screen.width
    window.screen.height

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    To A1ien51
    screen.Width and screen.availWidth are not the same, but, you may be right, old browsers may not recognize the avail...

    To Dingbat
    And... What could mean "don't work"? Tell us sharpely what happends
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Hi Guys,

    Thanks for your replies. Having thought about my problem a little more I made the following change to the first script.

    screenX=0,screenY=0,top=0,left=0

    That seems to sort out my problem.

    Your respnses are appreciated.

    The Dingbat.


  •  

    Posting Permissions

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