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 1 1819
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rob |
last post by:
Why does the following code NOT work in Mozilla, but it DOES in IE
(for Mac) and Safari?
<a href="somepage.html" onClick="window.open('somepage.html',
'SomeWindowTitle', 'width=790,height=560,...
|
by: Emma |
last post by:
Hi, I didn't know whether it was best to post this here or on a
mozilla-specific newsgroup, but I figured that you have all helped me
in the past, so this is a good place to start.
I have...
|
by: Jonathan |
last post by:
Hi
I open a new window using a javascript function:
function nw(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
which I call thus:
|
by: kaith |
last post by:
The following code used to popup a window when I used netscape 4.79.
Now I switched to mozilla 1.4 and the window doesn't popup.
function newWindow(newContent)
{
winContent...
|
by: kj |
last post by:
This problem is driving me nuts. The code at the end of this post
below works fine with IE, but fails with Mozilla. You can see it
in action at
http://tinyurl.com/2jvo3
With Mozilla 1.4 and...
|
by: Nicolás Lichtmaier |
last post by:
Hi, some time ago I've written an article about this issue. It explain
some differences in Explorer's and Mozilla's JavaScript/DOM. It has
recently changed its URL, This is the new one:
...
|
by: ReGenesis0 |
last post by:
I'm trying to rewrite the existing window using javascript. This
works fine in IE- but in Mozilla, after I call a window.open, Mozilla
starts wandering around like an alshiemers patient and...
|
by: Erik Steffl |
last post by:
I am trying to create a simple custom web spider using mozilla and
javascript, the basic functionality is to open a website and then
manipulate it using DOM (possibly opening links etc.).
it...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |