user can't resize popup window in IE

Discussion in 'Javascript' started by James Black, Apr 27, 2006.

  1. James Black

    James Black Guest

    In Firefox I can resize the window that is created, but in IE I can't.
    Here is the code I am using:
    var
    generator=window.open('','name','height=500,width=675,resizeable=1,toolbar=0,menubar=0,scrollbars=1');

    I also tried it with 'no' and 'yes' instead of '0' and '1'.

    I see the symbol in the window that I can click and drag, but, when I
    do click and drag, nothing happens.

    This is with XPSP2, btw.

    Thanx for any help.
     
    James Black, Apr 27, 2006
    #1
    1. Advertising

  2. James Black

    RobG Guest

    James Black said on 28/04/2006 2:40 AM AEST:
    > In Firefox I can resize the window that is created, but in IE I can't.
    > Here is the code I am using:
    > var
    > generator=window.open(...,resizeable=1,...);

    ---------------------------------^

    That's *resizable* (only one 'e'). To make the window resizable,
    include the attribute the feature string with no value (i.e.
    ....,resizable,... ), or set it to any other integer value than '0' or to
    the string 'yes':

    <URL:http://developer.mozilla.org/en/docs/DOM:window.open#Window_functionality_features>


    By default Firefox windows are always resizable. Other browsers may
    behave differently.


    --
    Rob
    Group FAQ: <URL:http://www.jibbering.com/FAQ>
     
    RobG, Apr 28, 2006
    #2
    1. Advertising

  3. RobG wrote :
    > James Black said on 28/04/2006 2:40 AM AEST:
    >> In Firefox I can resize the window that is created, but in IE I can't.
    >> Here is the code I am using:
    >> var
    >> generator=window.open(...,resizeable=1,...);

    > ---------------------------------^
    >
    > That's *resizable* (only one 'e'). To make the window resizable,
    > include the attribute the feature string with no value (i.e.
    > ...,resizable,... ), or set it to any other integer value than '0' or to
    > the string 'yes':
    >
    > <URL:http://developer.mozilla.org/en/docs/DOM:window.open#Window_functionality_features>
    >
    >
    >
    > By default Firefox windows are always resizable.


    This is not exact, Rob.

    Bug 177838: Make all popup windows resizable, ignoring resizable=no
    https://bugzilla.mozilla.org/show_bug.cgi?id=177838

    Bug 101509: Pref to disable resizable=no
    https://bugzilla.mozilla.org/show_bug.cgi?id=101509

    > Other browsers may
    > behave differently.


    Since Opera 7.0, popup window are always resizable; the users can not
    even make a popup window non-resizable.

    I've asked Microsoft in one of its IE product feedback page to do the
    same for popup windows, considering
    "Earlier versions of Internet Explorer ignored the resizable=no feature and
    allowed you to resize the new window."
    http://support.microsoft.com/default.aspx?scid=kb;en-us;211068

    MSIE 5.01 and previous were always ignoring resizable=no.

    Gérard
    --
    remove blah to email me
     
    Gérard Talbot, Apr 28, 2006
    #3
  4. James Black

    RobG Guest

    Gérard Talbot said on 28/04/2006 3:02 PM AEST:
    > RobG wrote :


    [...]

    >> By default Firefox windows are always resizable.

    >
    >
    > This is not exact, Rob.
    >
    > Bug 177838: Make all popup windows resizable, ignoring resizable=no
    > https://bugzilla.mozilla.org/show_bug.cgi?id=177838
    >
    > Bug 101509: Pref to disable resizable=no
    > https://bugzilla.mozilla.org/show_bug.cgi?id=101509


    I actually checked my about:config before posting, it has:

    dom.disable_window_open_feature.resizable : false


    yet I couldn't disable resizable - suits me! :)



    --
    Rob
    Group FAQ: <URL:http://www.jibbering.com/FAQ>
     
    RobG, Apr 28, 2006
    #4
  5. RobG wrote :
    > Gérard Talbot said on 28/04/2006 3:02 PM AEST:
    >> RobG wrote :

    >
    > [...]
    >
    >>> By default Firefox windows are always resizable.

    >>
    >>
    >> This is not exact, Rob.
    >>
    >> Bug 177838: Make all popup windows resizable, ignoring resizable=no
    >> https://bugzilla.mozilla.org/show_bug.cgi?id=177838
    >>
    >> Bug 101509: Pref to disable resizable=no
    >> https://bugzilla.mozilla.org/show_bug.cgi?id=101509

    >
    > I actually checked my about:config before posting, it has:
    >
    > dom.disable_window_open_feature.resizable : false
    >
    >
    > yet I couldn't disable resizable - suits me! :)


    I'm not sure I understand what you're saying.

    Select the property, then right-click and choose reset to reset the
    property to its default value. The property value will then be false. If
    you want window to be resizable all the time, then you must disable the
    window.open resizable feature ... which is true.

    I agree with you that such way to force resizability of windows
    permanently is far from being simple, obvious and well documented.

    This document

    http://developer.mozilla.org/en/docs/DOM:window.open#Window_functionality_features

    says "Mozilla and Firefox users can force new windows to be easily
    resizable by setting
    dom.disable_window_open_feature.resizable
    to true in about:config"

    Gérard
    --
    remove blah to email me
     
    Gérard Talbot, Apr 29, 2006
    #5
  6. James Black

    James Black Guest

    Thank you for spotting the typo. :)
     
    James Black, May 2, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Terren

    Resize popup window to fit text

    Terren, Sep 28, 2005, in forum: ASP General
    Replies:
    4
    Views:
    255
    Evertjan.
    Sep 29, 2005
  2. Jens Peter Hansen
    Replies:
    7
    Views:
    547
    Randy Webb
    Jun 19, 2004
  3. Raffi
    Replies:
    4
    Views:
    231
    Dr John Stockton
    Aug 12, 2004
  4. Nigel Molesworth

    Resize an existing popup window

    Nigel Molesworth, Jun 24, 2005, in forum: Javascript
    Replies:
    0
    Views:
    112
    Nigel Molesworth
    Jun 24, 2005
  5. GTi
    Replies:
    1
    Views:
    118
    Thomas 'PointedEars' Lahn
    Feb 5, 2006
Loading...

Share This Page