user can't resize popup window in IE

J

James Black

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.
 
R

RobG

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.
 
G

Gérard Talbot

RobG wrote :
James Black said on 28/04/2006 2:40 AM AEST:
---------------------------------^

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
 
R

RobG

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! :)
 
G

Gérard Talbot

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top