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


Groups > comp.lang.javascript > #30264

Re: Flow of execution / Full Screen mode

Path csiph.com!aioe.org!.POSTED!not-for-mail
From emf <emfril@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Flow of execution / Full Screen mode
Date Mon, 11 Apr 2016 21:57:47 -0400
Organization Aioe.org NNTP Server
Lines 53
Message-ID <nehkmj$1fvp$1@gioia.aioe.org> (permalink)
References <ned84i$c2i$1@gioia.aioe.org> <nefmfh$chi$1@solani.org>
NNTP-Posting-Host gUUH5gHvXSbupvU7ot7gTw.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.javascript:30264

Show key headers only | View raw


On 2016-04-11 04:15, Christoph M. Becker wrote:
> On 10.04.2016 at 11:58, emf wrote:
>
>> If I add an alert at the end of the following function (from
>> hmf.neocities.org/ix/is5.html):
>>
>> window.onload = function () {
>>      "use strict";
>>      document.getElementById("start").onclick = function () {
>>          requestFullScreen();
>>          init();
>>          alert("!"); // added alert
>>      };
>> };
>>
>> I would expect that when the Start button is clicked first the
>> requestFullScreen() would execute, then the init(), and when that one
>> has finished executing, the alert would come up. But obviously my
>> reasoning is wrong, because the alert appears immediately after the html
>> is loaded.
>
> <https://developer.mozilla.org/de/docs/Web/API/Element/requestFullscreen> says
> (emphasis mine):
>
> | The Element.requestFullscreen() method issues an *asynchronous*
> | request to make the element be displayed full-screen.
>
> The full specification of Element.requestFullScreen() clarifies the
> details:
> <https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen>.

I am relieved to hear that this anomaly in the flow of execution is just 
that -- an anomaly, and that the requestFullscreen seems to be the 
culprit. Well, since I need it, I have to just avoid its effects until I 
find something better.

BTW, after working in Firefox and checking the code with JSlint, I've 
started checking the exercises on Chrome and IE that I happen to have 
here, and unfortunately I've found some issue there. First in Chrome, 
for which I am mostly interested next, in exercise 4

http:/;emf.neocities.org/ix/ix4.html

when it gets in full screen the letters are not projected at the bottom 
  of the screen, unless you exit full screen mode. This happens only in 
this exercise, and not in #5 that also projects letters, and also not in 
Firefox. What's causing this?

Eustace

-- 
Eye exercises
http://emf.neocities.org/ix/eyex.html

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


Thread

Flow of execution emf <emfril@gmail.com> - 2016-04-10 05:58 -0400
  Re: Flow of execution Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-10 13:45 +0200
  Re: Flow of execution Philip Herlihy <thiswillbounceback@you.com> - 2016-04-10 17:48 +0100
    Re: Flow of execution Aleksandro <aleksandro@gmx.com> - 2016-04-10 15:20 -0300
  Re: Flow of execution "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-04-11 10:15 +0200
    Re: Flow of execution Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-12 00:34 +0200
    Re: Flow of execution / Full Screen mode emf <emfril@gmail.com> - 2016-04-11 21:57 -0400
      Re: Flow of execution / Full Screen mode Osmo Saarikumpu <osmo@weppipakki.com> - 2016-04-13 06:55 +0300
        Re: Flow of execution / Full Screen mode emf <emfril@gmail.com> - 2016-04-13 04:41 -0400
          Re: Flow of execution / Full Screen mode emf <emfril@gmail.com> - 2016-04-15 00:22 -0400
            Re: Flow of execution / Full Screen mode "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-04-15 12:53 -0700
            Re: Flow of execution / Full Screen mode Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-17 12:54 +0200
              Re: Flow of execution / Full Screen mode Nicholas Thayer <eatthecasket@gmail.com> - 2016-04-25 03:06 -0700
                Re: Flow of execution / Full Screen mode Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-25 21:48 +0200

csiph-web