Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16250

Re: button fullscreen

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <2966112.h9bJPn7RBK@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Sat, 29 Sep 2012 18:58:54 +0200
User-Agent KNode/4.4.11
Content-Transfer-Encoding 7Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: button fullscreen
Newsgroups comp.lang.javascript
References <5066b729$0$1993$426a74cc@news.free.fr> <k46vde$ess$1@speranza.aioe.org>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 71
NNTP-Posting-Date 29 Sep 2012 18:58:55 CEST
NNTP-Posting-Host 813a35ff.newsspool1.arcor-online.net
X-Trace DXC=5o7iHBcOSJcFXUDVUnEXQmic==]BZ:afn4Fo<]lROoRankgeX?EC@@`59mb1gI=;^iDZm8W4\YJNlR=i2=[N6Y6jXRmXA[We2Gm\2:]YCNd7Ga
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:16250

Followups directed to: comp.lang.javascript

Show key headers only | View raw


J.R. wrote:

> On 29/09/2012 05:54, jmrw wrote:
>> http://www.jmrw.com/Chess/Tableau_echecs/index.htm#diaporama
>>
>> To set mon slideshow in full screen I have found this script :
>>
>> <script language="JavaScript">
>> function fullScreen() {
>> var el = document.documentElement
>>      , rfs = // for newer Webkit and Firefox
>>             el.requestFullScreen
>>          || el.webkitRequestFullScreen
>>          || el.mozRequestFullScreen
>>          || el.msRequestFullScreen
>> ;
>> if(typeof rfs!="undefined" && rfs){
>>    rfs.call(el);
>> } else if(typeof window.ActiveXObject!="undefined"){
>>    // for Internet Explorer
>>    var wscript = new ActiveXObject("WScript.Shell");
>>    if (wscript!=null) {
>>       wscript.SendKeys("{F11}");
>>    }
>> }
>>
>> }
>> // End -->
>> </script>
>>
>> associated with the button
>> <button id="but_fullscreen"
>> style=background:whonclick="fullScreen('http://google.com');"> &nbsp;Full
>> Screen &nbsp;</button>
>>
>> With Google chrome it is ok
>>
>> with Firefox I cannot navigate anymore.
>>
>> With Intenet Explorer it 's ok localy but does'nt work on the distant.
>>
>> What to modify for it works with Firefox and Intenet Explorer?
> 
> According to the MDC, requestFullScreen is still an experimental
> technology:
> <https://developer.mozilla.org/en-US/docs/DOM/Using_full-screen_mode>
> 
> And it is not a W3C Standard nor is it on the W3C Standards Track.

There is no such thing as a "W3C Standard" or a "W3C Standards Track".  (You 
are confusing that with the IETF.)  With the W3C, all specifications that 
are not yet Recommendations could be said to be "on the standards track" as 
all such documents "may be updated, replaced or obsoleted by other documents 
at any time."
 
> So I think you should not use it in a production environment.

It has been used production environments before, though.  The problem here 
appears to be instead, as always, invalid markup, in combination with not 
handling host objects properly.  That is what usually happens with copy & 
paste without common sense and basic clueness, particularly in this field.  
When you look at this junk code more carefully, it is a miracle that it 
works as posted, assuming that it does.


PointedEars
-- 
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
  -- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

button fullscreen "jmrw" <jmrw@free.fr> - 2012-09-29 10:54 +0200
  Re: button fullscreen "jmrw" <jmrw@free.fr> - 2012-09-29 15:52 +0200
  Re: button fullscreen "J.R." <groups_jr-1@yahoo.com.br> - 2012-09-29 11:08 -0300
    Re: button fullscreen Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-29 18:58 +0200

csiph-web