Hello...
I'm still unable to test locally newly built HTML5 apps. They are running correctly online.
Components are loaded but the window remains blankI the spinning wheel turning...
Testing locally HTML5 apps
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 50
- Joined: Tue Jul 07, 2009 6:56 am
- Location: Grivegnée (Liege), Belgium
Testing locally HTML5 apps
André Rombauts, Liège (Belgium).
Retired teacher ( French language, History, English language and Computer science).
LC 9.6.6 (Business / HTML5 edition), testing LC 10 DP1.
Mac OS 11.6.2 Big Sur, MacBook Pro 16" 2019 (and other computers...).
Retired teacher ( French language, History, English language and Computer science).
LC 9.6.6 (Business / HTML5 edition), testing LC 10 DP1.
Mac OS 11.6.2 Big Sur, MacBook Pro 16" 2019 (and other computers...).
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Testing locally HTML5 apps
Most browsers won't execute JavaScript when run from a local file. Try Firefox, or consider setting up an HTTP server locally for testing.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Testing locally HTML5 apps
In order to test with LC 9.0.5 or later simply hit the button TEST of the LC toolbar.
Optionally select a browser different from the default browser of your OS from menu Development > Test Target.
Then LC opens your standalone with a (newly generated) local server using files generated in the temporary folder.
You only have an advantage from your own local server if you are using your own html5 template or input other sources like js or css files or images to the html.
In your browser use its development tools to see JS console messages.
Optionally select a browser different from the default browser of your OS from menu Development > Test Target.
Then LC opens your standalone with a (newly generated) local server using files generated in the temporary folder.
You only have an advantage from your own local server if you are using your own html5 template or input other sources like js or css files or images to the html.
In your browser use its development tools to see JS console messages.
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Testing locally HTML5 apps
Ah, so the Test button uses the built-in HTTPd? Nice touch. Thanks for the tip.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn