Testing locally HTML5 apps

Bringing your stacks to the web

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
arombauts
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Tue Jul 07, 2009 6:56 am
Location: Grivegnée (Liege), Belgium

Testing locally HTML5 apps

Post by arombauts » Thu Dec 12, 2019 3:42 pm

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...

:(
Attachments
Capture d'écran 2019-12-12 15.40.32.png
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...).

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Testing locally HTML5 apps

Post by FourthWorld » Thu Dec 12, 2019 5:26 pm

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

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Testing locally HTML5 apps

Post by [-hh] » Thu Dec 12, 2019 5:45 pm

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.
shiftLock happens

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Testing locally HTML5 apps

Post by FourthWorld » Thu Dec 12, 2019 10:03 pm

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

Post Reply

Return to “HTML5”