New download capability

42 views
Skip to first unread message

Bruce Sherwood

unread,
Mar 26, 2022, 11:44:24 PM3/26/22
to Glowscript Users
When editing a program and you click "Share or export this program", you see the JavaScript program that is generated from your Python program, and there are instructions on how to use the JavaScript version. One of the ways is to copy the JavaScript code and paste it into a file whose name ends with ".html". Once you have that file on our computer, double-clicking this html file will run the program.

There is now an easier way to create the html file, and the instructions are now available when you click "Share or export this program". You simply click a new link, "Download as HTML", which downloads to your download directory an html file containing the JavaScript code, and which can be executed simply by double-clicking the html file.

Bruce

Bruce Sherwood

unread,
Mar 28, 2022, 2:40:37 PM3/28/22
to Glowscript Users
I'll point out that with Chrome, Edge, and Firefox, when you click "Download as HTML" you have the option to click the file without going to the Download folder, which is convenient. With Chrome the link is displayed at the bottom of the page. With Edge and Firefox the link is in a popup window. With Safari you have to go to the Download folder to get to the html file.

I'll add that it is strongly recommended when working with Web VPython to use Chrome or Edge, because it is only with these browsers that is possible to present error messages that include the line number of the program where the error occurred.

Bruce

Reply all
Reply to author
Forward
0 new messages