Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HTML 5 page preview offline

Community Beginner ,
Oct 20, 2018 Oct 20, 2018

Hi everyone,

do you know if I can preview a html5 (+ JavaScript) while offline?

It seems not to be working...

Thank you in advance!

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 21, 2018 Oct 21, 2018

kglad  wrote

you'll need to download the createjs library, https://code.createjs.com/createjs-2015.11.26.min.js and change the path in your html file.

Or, instead of downloading a file from somewhere and manually mucking about in the generated code, he could just uncheck hosted libraries in the publish settings.

Translate
Community Expert ,
Oct 20, 2018 Oct 20, 2018

you'll need to download the createjs library, https://code.createjs.com/createjs-2015.11.26.min.js​ and change the path in your html file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 21, 2018 Oct 21, 2018

kglad  wrote

you'll need to download the createjs library, https://code.createjs.com/createjs-2015.11.26.min.js and change the path in your html file.

Or, instead of downloading a file from somewhere and manually mucking about in the generated code, he could just uncheck hosted libraries in the publish settings.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 13, 2021 May 13, 2021

I created a project specifically to use offline. I have unchecked the hosted library option, but the project does not appear to be using the js code. Here is the console error. 

 

DavidacrossAmerica_0-1620923311905.png

 

And here is where the code is referenced in the HTML file. 

DavidacrossAmerica_1-1620923444589.png

What's wrong here?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2021 May 13, 2021

upload your files to a server and test using the uploaded files.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 13, 2021 May 13, 2021

I did and got it working. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2021 May 13, 2021
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2018 Oct 21, 2018

You could also be having issues with the browser security settings if not serving via a local server. When previewed from Animate itself - not that a local web server is utilized.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines