Page 1 of 1

Use a web app with a simple browser ?

Posted: Tue Jan 24, 2023 5:04 pm
by Jack55
Hello

When we create a web application, can we launch it by opening the html file from a browser?
-I use the demo version-
Because when I create an application from the examples sprite.sb, screen.sb, 2DDrawing.sb etc there is no sprite displayed.
While it works fine when compiling with F5.
To use the web applications made with spiderbasic do you need a web server or a simple browser is enough?

Thanks !

Re: Use a web app with a simple browser ?

Posted: Tue Jan 24, 2023 5:25 pm
by Peter
Yes, you need a web server to run SpiderBasic apps.

Re: Use a web app with a simple browser ?

Posted: Tue Jan 24, 2023 6:57 pm
by AZJIO
Open the SpiderBasic\Libraries\javascript folder. Copy the "javascript" folder and put it next to the html file. Rename the "javascript" folder to spiderbasic. Now you can run the html file.
Surprisingly, I tried to run an html file an hour ago, not knowing about your question and looked at the html file that it refers to "spiderbasic/dojo/dojo.js" and then I realized what it was missing.

Re: Use a web app with a simple browser ?

Posted: Wed Jan 25, 2023 5:10 am
by useful