Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mozilla v IE window.open

Reply
Thread Tools

Mozilla v IE window.open

 
 
DaveG
Guest
Posts: n/a
 
      03-17-2006
Hi All

I am having a small problem with window.open() obviously something I am
or am not doing.

This is being fired from a subwindow. Everytime I use just the
location.href = "URL" I got a new window the same size as the subwindow
it was launched from.

The code below works in Mozilla by IE still opens a window the same
size as the subwindow

x = screen.width;
y = screen.height;

extWindow = window.open("http://www.stevengould.org/software/cleanup/",
"ext", "toolbar=no, resizable=yes");
extWindow.resizeTo(x, y);
extWindow.moveTo(0, 0);

All ideas will be helpfull

Thanks in advance
--
DaveG
Skøyen - Oslo - Norway
 
Reply With Quote
 
 
 
 
Gérard Talbot
Guest
Posts: n/a
 
      03-17-2006
DaveG wrote :
> Hi All
>
> I am having a small problem with window.open() obviously something I am
> or am not doing.
>
> This is being fired from a subwindow. Everytime I use just the
> location.href = "URL" I got a new window the same size as the subwindow
> it was launched from.
>
> The code below works in Mozilla by IE still opens a window the same
> size as the subwindow


You have not provided an url nor a lot of code regarding your problem.

>
> x = screen.width;
> y = screen.height;


Your calculation here is irrelevant as most Windows users have the
Windows taskbar present and sometimes other semi-permanent applications
(eg Office Quicklaunch bar). The work area for applications is what
matters here, not the entire screen area.

>
> extWindow = window.open("http://www.stevengould.org/software/cleanup/",
> "ext", "toolbar=no, resizable=yes");


The way you coded this, your code will request to remove the navigation
toolbar and everything else removed: because the "If you define the
strWindowFeatures parameter, then the features that are not listed,
requested in the string will be disabled or removed"
http://developer.mozilla.org/en/docs....open#Examples
As soon as there is a blank space, feature parsing/detection is stopped.
So, the window will not be resizable because there is a blank space in
the windowFeatures string list.
"string parameter must not contain any blank space. Each requested
window feature must be separated by a comma inside the character string".
http://developer.mozilla.org/en/docs...and_parameters

"if no size features are defined, then the new window dimensions will be
the same as the dimensions of the most recently rendered window."
http://developer.mozilla.org/en/docs....open#Examples

which is exactly the case here. This is by design too from browser
manufacturers.
The os must have the time to save those position and size data (re:
userdata persistence).

> extWindow.resizeTo(x, y);
> extWindow.moveTo(0, 0);
>


Resizing and moving existing windows is usually turn off by users. If
you get the size+position results you were expecting in Mozilla, it is
only because your advanced setting allow resizing and moving of existing
windows. You can expect MSIE 7 final release to follow Mozilla, Opera,
Safari on this.

Gérard
--
remove blah to email me
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla pieces versus Mozilla Suite Doug Chadduck Firefox 40 02-12-2006 10:27 PM
Windows Media opening outside Mozilla not in a Mozilla Window Jim Firefox 3 12-17-2005 02:00 AM
CSS Mozilla: Make Mozilla not ignore height style of an inline element Henri HTML 9 02-22-2005 06:08 PM
My CUSTOM Versions Of Mozilla Fiorefox & Mozilla Thunderbird Norvin Adams III Firefox 6 07-13-2004 03:26 PM
mozilla 1.5 from mozilla 1.4 Disco Firefox 6 11-07-2003 04:34 PM



Advertisments