Click to See Complete Forum and Search --> : Full screen, Netscape & IE & Opera confusion ??


Asch
04-23-2003, 02:12 AM
Hi i ve made an easy script for full screen, it works well with Internet explorer...but bugs with opera & netscape...how could I make compatible ? Many thanks

-------------------------------------------------
function fullScreen(theURL) {
window.open(theURL, 'popupWin', 'fullscreen=yes, scrollbars=auto');
}
-------------------------------------------------


asch...:O)

AdamGundry
04-23-2003, 03:05 AM
I don't think "fullscreen" is a supported window feature for Netscape/Mozilla, at least. It's not in DevEdge's JavaScript reference.

Perhaps you could do this?

function fullScreen(theURL) {
window.open(theURL, 'popupWin', 'scrollbars=auto, width=' + screen.width + ', height=' + screen.height);
}

Adam

Asch
04-23-2003, 03:22 AM
adam,

thats the way I ve done it before :o), but the problem with this , is that ther is still the frame arround! I dont want it !!!duhh...

I m sure Netscape & opera have an "fullscreen" command !
dont you know it ?or wher could i find it :O)...

thx

asch

AdamGundry
04-23-2003, 03:39 AM
I can't help you with a workaround, but here are some references.

Microsoft reference (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp) (mentions fullscreen)
Netscape reference (http://developer.netscape.com/docs/manuals/communicator/jsref/win1.htm#1152528) (doesn't)

I presume NS/Mozilla/Opera don't have a fullscreen command for security reasons, but there could be a workaround. Why do you want to open a fullscreen window?

Adam

EDIT: Corrected Netscape URL.

Asch
04-23-2003, 07:28 AM
well ok, i l chek it out :o)....thx...

cause the pages that I have made are looking much better with a full screen....duhhhh :O)..

and yes for opera ther is, caus in the toolbar of the explorer ther is an option for full screen :O) !!lol..


asch...

pyro
04-23-2003, 07:41 AM
Originally posted by Asch
I m sure Netscape & opera have an "fullscreen" command !And why are you sure of that? Fullscreen is a MS proprietary tag, and, as you know, doesn't work in NN, Mozilla, etc...

Originally posted by Asch
and yes for opera ther is, caus in the toolbar of the explorer ther is an option for full screen That doesn't mean that you can reference it with javascript... :rolleyes:

Asch
04-23-2003, 08:05 AM
Hmmm ,

Yes it s an ms tag but...now i m not sure any more ..duhhhh lol :O)...

I ve looked arround on the references I havent find anywhere...

but ther musst be a way to reference it no ??
dont you have an idea ?

otherwhise i l need to do one for explorer full screen, and with the frame for the other browser, put a sniffer or something like that...
that will be ok..but not like I want lol....

see ya

asch
:D

viravan
04-23-2003, 09:54 AM
You can create a Chromeless windows (at least in Netscape 4 and 6) by turning the decorations off.


The following example would make the referenced window "chromeless" (chromeless windows lack toolbars, scrollbars, status areas, and so on, much like a dialog box) by hiding most of the user interface toolbars:

self.menubar.visible=false;
self.toolbar.visible=false;
self.locationbar.visible=false;
self.personalbar.visible=false;
self.scrollbars.visible=false;
self.statusbar.visible=false;


Some of the abovementioned operations require a UniversalBrowserWrite privilege (e.g., adding or removing the directory bar, location bar, menu bar, personal bar, scroll bar, status bar, or toolbar). You'll need a line that looks like this:

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");

You might even have to sign the script! A royal pain, eh?

:)

V.V.

Asch
04-24-2003, 03:15 AM
Lol, thanks, royal pain as you say... i l try to muk arround with that :O)...I tel you why arrent all this browser with same commands...the world could be so simple .....:O) ...duhhh

I m turning my head off with opera, now comes netscape...I love explorer, commands are so easy lol...:O)


see ya

Asch
Royal programming

:D