Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Hide URL (F11)
Thu, Jul 25 2019 10:03 PMPermanent Link

KimHJ

Comca Systems, Inc

I have seen other web apps going full screen on a windows computer and I see some have asked here as well.
Just wondering if anyone have found a solution.

I found this code, but I don't know where to place it in EWB or the generated HTML or JS file.

<script>
document.body.requestFullscreen();
</script>

Kim
Fri, Jul 26 2019 9:26 PMPermanent Link

Raul

Team Elevate Team Elevate

On 7/25/2019 10:03 PM, KimHJ wrote:
> I have seen other web apps going full screen on a windows computer and I see some have asked here as well.
> Just wondering if anyone have found a solution.
>
> I found this code, but I don't know where to place it in EWB or the generated HTML or JS file.
>
> <script>
> document.body.requestFullscreen();
> </script>

You can add this to external function.

Basically create a js file with following content

function DoFullScreen()
{
   document.body.requestFullscreen();
}

Add this file as external file to the project

and then in your main form unti for example declare external function

external procedure DoFullScreen;

and then you can call this - for example from button handler or FormShow
event or such.

Note that it does not work for Edge and in IE appears to have a vendor
prefix :

https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen


Raul
Mon, Jul 29 2019 6:44 PMPermanent Link

KimHJ

Comca Systems, Inc

Raul wrote:

>>You can add this to external function.

Basically create a js file with following content

function DoFullScreen()
{
   document.body.requestFullscreen();
}

Add this file as external file to the project

and then in your main form unti for example declare external function

external procedure DoFullScreen;

and then you can call this - for example from button handler or FormShow
event or such.

Note that it does not work for Edge and in IE appears to have a vendor
prefix :

https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen<<


Thanks Raul,

I had a hard time to get it to work I was missing one step.

I had to add the js file to Project, External Files.

Kim
Tue, Jul 30 2019 2:28 PMPermanent Link

Raul

Team Elevate Team Elevate

On 7/29/2019 6:44 PM, KimHJ wrote:
> I had a hard time to get it to work I was missing one step.
>
> I had to add the js file to Project, External Files.

Yes that is a needed step.  it allows EWB to actually know about the
external file and load it so the function becomes available

Raul
Fri, Aug 2 2019 10:59 AMPermanent Link

Douglas Lyman

I thought this would be a great feature for iOS.  Unless I'm doing something wrong, its not working for me (Safari or Chrome).
Image