Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2012, 10:07 PM   PM User | #1
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
fullscreen through javascript

Hi,
well making a page fullscreen is one of my favorite topics but whenever I have thought of doing it, I have always received one answer and that is, it is only done with flash.
For the first time today I saw one that is not done with flash, can someone tell me how exactly it is done, so I could atlast full my dream of using it ^^
here is the image
http://content.screencast.com/users/...04-13_0001.png

and here is the link to the page where this fullscreen button exists.
http://tutorialzine.com/2010/09/html...deshow-jquery/
cryoffalcon is offline   Reply With Quote
Old 04-12-2012, 10:12 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
There is nothing on that page that makes it full screen or if there is it must only be working for you because either you are using an antiquated browser or have disabled some of the settings that prevent web pages interfering with your browser.

If people want to view something full screen they will press the F11 key (or whatever alternative they have set up to use with their browser).
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is online now   Reply With Quote
Old 04-12-2012, 10:35 PM   PM User | #3
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
Quote:
Originally Posted by felgall View Post
There is nothing on that page that makes it full screen or if there is it must only be working for you because either you are using an antiquated browser or have disabled some of the settings that prevent web pages interfering with your browser.

If people want to view something full screen they will press the F11 key (or whatever alternative they have set up to use with their browser).
How can you talk like that man, I added a pic so you can see, there is nothing that is blocked on browser, why would I do that while I am trying to develop something and my all browsers are up to date.
Kindly see the picture and then find that button, I have confirmed the button through, firefox, ie9, chrome
I hope this is enough for testing to verify that the button that I am talking about exists.
cryoffalcon is offline   Reply With Quote
Old 04-13-2012, 12:50 AM   PM User | #4
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
When you click the button, and it goes fullscreen, you get the temporary message:
"Press ESC to exit fullscreen"
Which is a message from flashplayer.

clicking the button triggers something that are flash!
Lerura is offline   Reply With Quote
Old 04-13-2012, 03:20 AM   PM User | #5
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
There is no Full Screen button showing anywhere on that page when I look at it.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is online now   Reply With Quote
Old 04-13-2012, 03:36 AM   PM User | #6
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
Using firefox 11, I see the fullscreen button about 1cm below the bottom-left corner of the first image (just left of the tweet icon).
Lerura is offline   Reply With Quote
Old 04-13-2012, 06:39 AM   PM User | #7
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
Quote:
Originally Posted by lerura View Post
When you click the button, and it goes fullscreen, you get the temporary message:
"Press ESC to exit fullscreen"
Which is a message from flashplayer.

clicking the button triggers something that are flash!
I have find out what is it, it's based on html5, its not flash ^^ I am really glad that internet is now improving. It's the same thing that is these days used in html5 players, it's just that this site owner was smart he/she used it in site.
I am making a games site so its a best option for me except that it has compatibility issues with old browsers
cryoffalcon is offline   Reply With Quote
Old 04-13-2012, 09:59 AM   PM User | #8
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Must be a bug in that version of Firefox - they wouldn't introduce something so annoying to 99% of visitors on purpose.

Alternatively it might be one of those proposed HTML 5 features that they are trying out in that browser just so they can find out how annoying it is so as to have a proper explanation for why it gets dropped.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is online now   Reply With Quote
Old 04-13-2012, 01:10 PM   PM User | #9
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
I tried it in Chrome and looked at Developer tools and noticed this in Chrome user-agent stylesheet:

Code:
:-webkit-full-screen {
  background-color: white;
  z-index: 2147483647;
}
So I guess it's one of CSS3's new non-standard features (yet) and some browsers started to implement their own until it becomes standard later on.

I also noticed fullscreen functionality in Facebook Photo slideshow recently.

In my opinion, it's not annoying. The user is given a choice to do fullscreen or not and not forced to do it.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 04-13-2012, 09:01 PM   PM User | #10
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,461
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
it's called element.requestFullScreen()


https://developer.mozilla.org/en/DOM...ll-screen_mode
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Old 04-13-2012, 09:07 PM   PM User | #11
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,461
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by felgall View Post
Must be a bug in that version of Firefox - they wouldn't introduce something so annoying to 99% of visitors on purpose.
Alternatively it might be one of those proposed HTML 5 features that they are trying out in that browser just so they can find out how annoying it is so as to have a proper explanation for why it gets dropped.

think outside the innerWidth box!

if you think this is going to go away or is some kind of a bug, you are sorely mistaken. this isn't the first HTML5 feature that's gone un-noticed around here, and i fear it won't be the last. stick your head in the sand and use php for apps if you must, but the rest of us have bad-@ss apps to create. naysay elsewhere please.

initially, requestFullScreen() was developed for the <video> tag, but it can also be great for <canvas> and even some <div>s.

combined with the ability to unhinge the mouse from the pointer, it's the first indication that HTML5 is serious about games, multimedia, presentation software, data-view "screensavers" (like stock markets and weather), and many other applications that can use maximum screen real-estate.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Old 04-14-2012, 12:17 AM   PM User | #12
venegal
Gütkodierer


 
Join Date: Apr 2009
Posts: 2,127
Thanks: 1
Thanked 426 Times in 424 Posts
venegal has a spectacular aura aboutvenegal has a spectacular aura about
Quote:
Originally Posted by cryoffalcon View Post
For the first time today I saw one that is not done with flash, can someone tell me how exactly it is done, so I could atlast full my dream of using it ^^
There's a whole article on the fullscreen API on the very site you linked to in your original post: http://tutorialzine.com/2012/02/enha...ullscreen-api/
__________________
.My new Javascript tutorial site: http://reallifejs.com/
.Latest article: Calculators — Tiny jQuery calculator, Full-fledged OOP calculator, Big number calculator
.Latest quick-bit: Including jQuery — Environment-aware minification and CDNs with local fallback
venegal is offline   Reply With Quote
Old 04-14-2012, 06:14 PM   PM User | #13
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
Well I don't think that people in the next generation would like to live without fullscreen world is changing and as said above we are not going to force users. Anyway I am going to use it for games (while keeping it optional for users).
Thanks for your helpful replies I read the article, it shows that It is not implemented by all browsers up till now, so I have to find a way to make it trigger with f11 so the browsers which support real fullscreen (the one like flash) become fullscreen for real otherwise they can remove the browsers extra panels and show entire screen (which actually f11 do) ^_^
cryoffalcon is offline   Reply With Quote
Reply

Bookmarks

Tags
fullscreen, javascript

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:34 PM.


Advertisement
Log in to turn off these ads.