#1 2016-12-19 11:51:10

yosik
Member
Registered: 2016-12-18
Posts: 6

Trying to open the application's "index.html" file in the browsers

Hi,
After building an app, I want to view it, first in a browser, even before building a native app (with Cordova, for example).
I do get the html file etc..but in browsers, the "page" is blank.
Is there any way to check the app besides previewing it inside AppBuilder?
Thanks
Yossi

Offline

#2 2016-12-19 11:57:20

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Trying to open the application's "index.html" file in the browsers

Hello Yossi,

I am not quite sure if understand very well but I will try to answer. For sure it's not normal if you run an application and the page appear "blank". Are you try with the included samples? What happend if you open the Calculator sample, for example, and then press the F9 (Debug) key? Can you see the application running in the App Builder's debugger browser?

On the other hand, take a look at the App Builder toolbar: you can also click on the browsers' icons. App Builder try to locate the browsers you have installed in your computer and then prepare an icon for everyone is found. You can add more from the program's options dialog. Anyway, when you click one of these icons, can you see the application running in the choosed browser?

On the other hand, if you view a "white page"... can you see any error message in the debugger console?

Offline

#3 2016-12-19 13:19:18

yosik
Member
Registered: 2016-12-18
Posts: 6

Re: Trying to open the application's "index.html" file in the browsers

Hi,
Ok. This is what I get:
In AppBuilder:
1. Launching "Preview" works
2. Launching "Preview with Browsers" works (I added Chrome to the existing Explorer...no problem, works in both)
3. The above works both for the sample apps and for an app I built myself.
(BTY..not related. The above previews at first do not show changes. Only after a few times I previes/save/preview...do I see the last change I made. Why is that?)

Outside AppBuilder (meaning with a browser), I cannot open the html file which is inside the name_complied folder. I get a blank page.
What I wanted to do is see what the "output" looks like.
Am I making a mistake?
Can this be seen on a tablet only?

Thanks

Yossi

Offline

#4 2016-12-19 13:24:13

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Trying to open the application's "index.html" file in the browsers

Hello Yossi,

The App Builder's produces applications requires a web server (any HTTP server) to properly work. You can open the "index.html" with Firefox, for example, and they apparently works fine. But other browsers like Microsoft Edge can't open such "index.html" if they are not served by an HTTP server, just because "local files" have missing some features like "AJAX" requests, local storage, etc.

About how to view the latest changes we made in an application, be sure you use the Debug command (F9), which always saves the application before launched it. If you use the Run command (CTRL+F9) then the latest compiled application is launched, without saving the application first.

Hope this can help you but please go ahead if you have any further question.

Offline

#5 2016-12-19 13:31:34

yosik
Member
Registered: 2016-12-18
Posts: 6

Re: Trying to open the application's "index.html" file in the browsers

Hi,
100% !! you answered my question.
Thank you SO much.
Launched a local HTTP server and ran the compiled app..works perfect!
My bad for not understanding Debug vs Run commands.
Thank you!
Yossi

Offline

#6 2016-12-19 13:32:59

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: Trying to open the application's "index.html" file in the browsers

Hello Yossi,

yosik wrote:

Hi,
100% !! you answered my question.
Thank you SO much.
Launched a local HTTP server and ran the compiled app..works perfect!
My bad for not understanding Debug vs Run commands.
Thank you!
Yossi

No problem! Please, don't hesitate to ask whatever you wanted. smile

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.