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

cpAPIInterface.gotoSlide broken in Chrome?

Explorer ,
Nov 02, 2017 Nov 02, 2017

Hello,

I have a project where I'm using two clickboxes which execute this Javascript (albeit with different slide #s): cpAPIInterface.gotoSlide(96).

This works when previewing as HTML5, but does not work when publishing as HTML5. Or rather, published version doesn't work in Chromium-based browsers, including Chrome and Vivaldi. It does work in both preview & published versions in Firefox, IE, and Edge.

Anyone know what gives?

344
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

Community Expert , Nov 02, 2017 Nov 02, 2017

If you are trying to play the content locally, then it's probably due to some security restriction in effect on those browsers.

The best way to test any HTML5 content is to upload it to a web server and view it from there.

Translate
Community Expert ,
Nov 02, 2017 Nov 02, 2017

If you are trying to play the content locally, then it's probably due to some security restriction in effect on those browsers.

The best way to test any HTML5 content is to upload it to a web server and view it from there.

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
Explorer ,
Nov 02, 2017 Nov 02, 2017
LATEST

That was it—cross-origin error because of iframes and Chrome treats different sub-folders as different origins when run locally.

Unfortunately, for this project our employees will all be running locally. The switch "--allow-file-access-from-files" works for Vivaldi (Chromium variant), but not for Chrome itself. So still experimenting with other workarounds.

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
Resources
Help resources