PDA

View Full Version : Multiple screens, and window with no title bar - is it possible?


tiger_campbell
09-07-2002, 03:31 PM
I am proposing to use Javascript (for speed of development) in a situation where I need to open a window, preferably full-size, on a second monitor, and preferably without a title bar. The program will be controlled from the first monitor, where the window will retain the focus, and will be selecting HTML files for display on the second monitor, which will in fact be a projector. For speed, I will be using keyboard input (messy) rather than mouse. Basically I am making a slide show, with scrollable text on the projector. This might be useful to someone else, so I will publish the code if and when it works.

I can see how to get the major part of the program working, but how do I get the window to open on the second screen? BTW I can find nothing about how to do this in Windows, using any other programming language either! I am using Windows 2000 for this, might want to use Linux later. I am guessing that I might have to use some strange coordinates to position the window, or is there more to it than that?

I prefer to use Netscape 6 or 7, or Mozilla, hence the second part of the question, about getting rid of the title bar, which is said to be impossible. If this is so, that part of the question can then be addressed elsewhere (to the Mozilla developers as a desirable feature?)

Thanks in anticipation,

Alan Campbell

Quiet Storm
09-07-2002, 07:36 PM
Re: second monitor.

The question should be "How do you know your visitors will have a second monitor?" :)

Getting a window to open on the second one is easy... in IE.
Find the width of the current screen, then have a window open just to the right of that:

width=800px
window.open @ 810px

I don't think this can be done on NS - something about security???

Same goes with no titlebar - possible as Chromeless (http://www.microbians.com/) in IE, but not on NS...

realisis
09-08-2002, 08:45 AM
well, Mozilla rev0.9.9 does implement the MS "fullscreen" option, via function key F11 - this removes all chrome from view, including titlebar.

However, I don't know if you can script the statement into a window.open() call like you can with IE (haven't tried it yet).

Opera also has a "kiosk" mode which behaves much the same way, fwiw.

btw, NS6.1 doesn't implement fullscreen... dunno about 6.2 or 7.0 though.

tiger_campbell
09-09-2002, 01:23 AM
Thanks very much for both your prompt and helpful replies.

To clarify one thing, this is a standalone application, so I know the monitor configuration. I am only using browser technology for ease of use, and the many good properties of HTML, such as its elegant simplicity (i.e. even I can understand it!) A web browser does a bit more than I need, but developing something from scratch would take a long time.

I have just tested Mozilla 1. Sure enough, F11 does the necessary, provided the other bars are off, but it seems slightly buggy, locking up sometimes. However I can accept this for now, after all it is still in development.

I will try the screen coordinates tomorrow to see what happens, or not.....

The security problem in Mozilla is a pain, it should not be needed for local file access, but I accept it is very necessary on the net. I am vaguely aware of the issues, and might have to go that way, i.e. signed scripts etc, if all else fails.

Otherwise I will need to spend a few weeks (months?) studying Mozilla, maybe do a custom build or something.

Or, I will admit defeat and use IE instead, although first impressions are that Mozilla is the better browser.

I will report my findings in due course, in case others want to know.

Alan Campbell