Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16243 > unrolled thread
| Started by | "jmrw" <jmrw@free.fr> |
|---|---|
| First post | 2012-09-29 10:54 +0200 |
| Last post | 2012-09-29 18:58 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.javascript
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
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-29 10:54 +0200 |
| Subject | button fullscreen |
| Message-ID | <5066b729$0$1993$426a74cc@news.free.fr> |
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');"> Full
Screen </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?
thanks.
jmrw
[toc] | [next] | [standalone]
| From | "jmrw" <jmrw@free.fr> |
|---|---|
| Date | 2012-09-29 15:52 +0200 |
| Message-ID | <5066fd31$0$1729$426a74cc@news.free.fr> |
| In reply to | #16243 |
<button id="fullscreen" style=background:grey onClick= MM_popupMsg(Message)> Fullscreen </button> Message = " Press on the key F11 of your keyboard \n\nAppuyez sur la touche of F11 de votre clavier"; jmrw
[toc] | [prev] | [next] | [standalone]
| From | "J.R." <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2012-09-29 11:08 -0300 |
| Message-ID | <k46vde$ess$1@speranza.aioe.org> |
| In reply to | #16243 |
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');"> Full
> Screen </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.
So I think you should not use it in a production environment.
--
Joao Rodrigues (J.R.)
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2012-09-29 18:58 +0200 |
| Message-ID | <2966112.h9bJPn7RBK@PointedEars.de> |
| In reply to | #16247 |
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');"> Full
>> Screen </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>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web