View Full Version : F11 - full screen - channelmode
netspace
05-03-2003, 04:53 AM
the task is to design the code for the following: on a single page there should be a link, say a button, to simulate F11 key
so, you press button and the window size changes to full,
you press another time this button and a window size "comes" back to whatever it was before the first click....
help appreciated
Jerome
05-03-2003, 12:11 PM
Hi,
F11 key can only be activate with the users finger!
Another way, which I do not recommend, is the use of full-screen mode. There are only 2 but's
#Only possible to view in a new window
#You need to have a very big EXIT button in Your document to allow users to exit this window
The code could be something like:
window.open("filename.htm","new","fullscreen")
Think carefully about Your target-viewers
Succes,
Jerome
netspace
05-03-2003, 03:03 PM
thanks for response, it is a pity that F11 cannot be executed using a script - then one thing that we could do is to make a note to hit F11 to resize the screen....
is F11 and channelmode the same thing?
I got the idea that we could have a link that executes fullscreen mode on one page and another link that execute the "normal" window appearance on the "fullscreen" version of the same site,
the thing is to play with new windows that will open and suppose to close if necessary
brothercake
05-03-2003, 03:22 PM
I think it's a very good thing that a script can't press function keys. Scripts have no business messing with my interface.
Incidentally, fullscreen doesn't work in IE6SP1 - it was considered a security bug and removed.
netspace
05-03-2003, 04:03 PM
hi, could you explain how fullscreen mode affects security and is a bug?
brothercake
05-03-2003, 04:39 PM
Originally posted by netspace
hi, could you explain how fullscreen mode affects security and is a bug?
It's a security issue because it allows you to make windows which don't appear to be windows, and don't have the normal user interface - the close button, title bar and other necessary decorations.
From that perspective, if it's possible then it's a bug.
netspace
05-03-2003, 04:51 PM
if that is the case then this kind of security is so "stupid" (sorry) since the environment allows to execute fullscreen mode anyway and it has nothing to do with enhancing security on the sites,
also, a use of F11 is a different one than using of "fullscreen=1" in a script window.open(....)
my original intention was to "have" a button on my site that would allow the user to change the window size instead of hitting F11, that was all. I had no idea that preventing this by using a code is "more" secure than just simply hitting that F11
liorean
05-03-2003, 05:02 PM
Hmm, maybe this is the time to point towards some other threads: <http://codingforums.com/showthread.php?s=&threadid=19267> and <http://www.codingforums.com/showthread.php?s=&threadid=17710>.
In short, the user is the sole ruler of the interface - documents shouldn't be able to change the interface without the user's express permission. This is the philosophy behind it, anyways - it's not quite true of the situation for the moment, but the situation is slowly changing towards it.
So, because the document shouldn't be able to do interface stuff without permission, this is not allowed from the script, no matter if the script is activated by a user interaction or not. Only a direct user action can do it.
Arctic Fox
05-03-2003, 06:53 PM
Originally posted by brothercake
I think it's a very good thing that a script can't press function keys. Scripts have no business messing with my interface.
Incidentally, fullscreen doesn't work in IE6SP1 - it was considered a security bug and removed.
No....
Here we go again. :D
Chromeless was removed - shows as fullscreen.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.