Testing locally HTML5 apps

Bringing your stacks to the web

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
arombauts
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 47
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, Belgium
Retired teacher ( French language, History, English language and Computer science).
LC 9.6.1 Business edition

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8016
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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

[-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: 8016
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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “HTML5”