By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,886 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Firefox and Multiple Screens

P: n/a

I am trying to build an interface for browsing a web-accessible
database from a twin-monitor "kiosk", using Windows XP, with the
option to "extend the desktop" onto the second screen.

I want to control the way windows are positioned on the two screens.

((Note: this is a "special case" interface. It is NOT part of the
normal web site, it is only meant to be used from these twin
screen machines, which will have known configurations. It
is not meant to be a general web interface or work on any
other setup...))

I have spent a while banging my head against this, and I believe I
have discovered the following.

By default, "window.open" and "window.moveTo" take locations, but
seem to be constrained to be entirely on the primary screen. So even
if you ask for a window to open on the (part of the desktop displayed
on the) second screen, it will in fact appear on the main display.

In Internet Explorer, there is a security setting named something like
"allow script-initiated windows without size or position constraints"
which lets me get around this. If I enable this, I can use javascript
to open windows on whichever desktop I choose.

I would LIKE to be able to keep open the option of using (or, if
necessary, changing to) Firefox on these kiosks. But I cannot
see how to do this: it does not seem to have any equivalent to this
security setting, so I cannot get windows off the primary display.

Can anybody shed any light? Is there a way to do this?

Robert.

--
|_) _ |_ _ ._ |- | So what? It's easier for me, so I'll do it!
| \(_)|_)(-'| |_ |
deadspam.com is a spamtrap. | > > What's wrong with top posting?
Use bcs.org.uk instead. | > It makes it hard to see comments in context.
Feb 6 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Robert Inder wrote:
By default, "window.open" and "window.moveTo" take locations, but
seem to be constrained to be entirely on the primary screen. So even
if you ask for a window to open on the (part of the desktop displayed
on the) second screen, it will in fact appear on the main display.

In Internet Explorer, there is a security setting named something like
"allow script-initiated windows without size or position constraints"
which lets me get around this. If I enable this, I can use javascript
to open windows on whichever desktop I choose.

I would LIKE to be able to keep open the option of using (or, if
necessary, changing to) Firefox on these kiosks. But I cannot
see how to do this: it does not seem to have any equivalent to this
security setting, so I cannot get windows off the primary display.

Can anybody shed any light? Is there a way to do this?


While I consider Firefox's behavior a bug (that you should file on
Bugzilla if it has not been filed there before), you can

A) use a signed script on these boxes
B) modify the Firefox preferences on these boxes

and request the UniversalBrowserWrite privilege to work around that.

It has been asked about circumventing security restrictions
not long ago: news:15****************@PointedEars.de

Please do research on previous articles before you post.
Google is your friend. [psf 6.1]
PointedEars
Feb 6 '06 #2

P: n/a
Thomas 'PointedEars' Lahn said the following on 2/6/2006 10:12 AM:
Robert Inder wrote:
By default, "window.open" and "window.moveTo" take locations, but
seem to be constrained to be entirely on the primary screen. So even
if you ask for a window to open on the (part of the desktop displayed
on the) second screen, it will in fact appear on the main display.

In Internet Explorer, there is a security setting named something like
"allow script-initiated windows without size or position constraints"
which lets me get around this. If I enable this, I can use javascript
to open windows on whichever desktop I choose.

I would LIKE to be able to keep open the option of using (or, if
necessary, changing to) Firefox on these kiosks. But I cannot
see how to do this: it does not seem to have any equivalent to this
security setting, so I cannot get windows off the primary display.

Can anybody shed any light? Is there a way to do this?


While I consider Firefox's behavior a bug (that you should file on
Bugzilla if it has not been filed there before), you can


You consider it a bug that Firefox won't allow you to open, or move, a
window to a point that is not on the main display? That's not a bug. It
is a very well thought out feature.

I consider it a bug/flaw that browsers even allow you to move a window
much less open it where I don't want it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 6 '06 #3

P: n/a
> Thomas 'PointedEars' Lahn writes: Subject: Re: Firefox and Multiple Screens
Date: Mon, 06 Feb 2006 16:12:51 +0100 Robert Inder wrote: By default, "window.open" and "window.moveTo" take locations, but
seem to be constrained to be entirely on the primary screen. So even
if you ask for a window to open on the (part of the desktop displayed
on the) second screen, it will in fact appear on the main display.

While I consider Firefox's behavior a bug (that you should file on
Bugzilla if it has not been filed there before), you can A) use a signed script on these boxes
B) modify the Firefox preferences on these boxes and request the UniversalBrowserWrite privilege to work around that.
Thanks.

Documentation on this doesn't exactly leap out at one, but I think
I've found what i need.
PointedEars


Robert.

--
|_) _ |_ _ ._ |- | So what? It's easier for me, so I'll do it!
| \(_)|_)(-'| |_ |
deadspam.com is a spamtrap. | > > What's wrong with top posting?
Use bcs.org.uk instead. | > It makes it hard to see comments in context.
Feb 10 '06 #4

P: n/a
Robert Inder wrote:
Thomas 'PointedEars' Lahn writes:
> Subject: Re: Firefox and Multiple Screens
> Date: Mon, 06 Feb 2006 16:12:51 +0100 ^^^^^^^^
No need to reproduce those headers.
> Robert Inder wrote:
^^^^^
You still have something to configure left ;-)

[Fixed quotation]
By default, "window.open" and "window.moveTo" take locations, but
seem to be constrained to be entirely on the primary screen. So
even if you ask for a window to open on the (part of the desktop
displayed on the) second screen, it will in fact appear on the main
display.

While I consider Firefox's behavior a bug (that you should file on
Bugzilla if it has not been filed there before), you can

A) use a signed script on these boxes
B) modify the Firefox preferences on these boxes

and request the UniversalBrowserWrite privilege to work around that.


Thanks.


You are welcome.
Documentation on this doesn't exactly leap out at one,
I do not understand. You just had to follow the message-ID I posted
and would have found

<URL:http://developer.mozilla.org/en/docs/Bypassing_Security_Restrictions_and_Signing_Code>

in the referenced posting.
but I think I've found what i need.
OK. (Maybe it was not the above.)
[...]


Please do not quote signature names unless you are referring to them
directly, and please delimit your signature with "-- " (Gnus is definitely
capable of that, too. Some people say it even can brew your coffee :))
Regards,
PointedEars
Feb 10 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.