Skip to main content
ladylothlorien
Participating Frequently
December 10, 2016
Answered

Error in JavaScript for CPXHRLoader.js every time I publish as HTML5 in Captivate 9

  • December 10, 2016
  • 1 reply
  • 2354 views

I am at my wit's end.  I have successfully published videos with Captivate 9 but they were created in previous versions. So this is the first time that I am creating a tutorial in Captivate 9. I used one of the built-in themes (Chic if it matters) and I have an embedded YouTube video as a web object but other than that, it's completely standard stuff (audio on all slides, no animations, background music on each slide except the one with the YouTube video).

When I publish it as either HTML5 or SWF, it works fine locally. But as soon as I try to upload it to my company's web server or to our Adobe Connect server, it won't work. There is a javascript error with the CPXHRLoader.js. I'll attach the screenshot from Chrome's web developer.

With the SWF version, as long as I click on the .htm file it works fine (and Chrome web developer finds no issues other than that missing file which is okay). But if I click on the index.html file, it won't work. 

My web developer kindly looked at this but he has no idea how to fix it other than there is a problem with the Javascript. 

I know nothing about Javascript. I tried running the code through a couple of "cleaners" online to clean up the code but still no dice.

Anyone with more Javascript experience have any ideas to fix this?

Here is what I have done:

  • tried uploading to Adobe Connect 9...both HTML5 and SWF won't play (just spins)  I think even with the SWF it's trying to play the HTML5 index page
  • tried cleaning code on https://dirtymarkup.com/ and another place but it didn't fix the issue
  • of course I checked if there were updates to Captivate 9; I have the latest patch/version 9.0.2.437

CPXHRLoader (Javascript file in question)

Error from Chrome Web Developer view

This topic has been closed for replies.
Correct answer Lilybiri

Can you check if the server supports JSON since it is now used for most images in HTML output?

1 reply

Lilybiri
LilybiriCorrect answer
Legend
December 10, 2016

Can you check if the server supports JSON since it is now used for most images in HTML output?

ladylothlorien
Participating Frequently
December 10, 2016

We use OmniUpdate and their site seems to indicate JSON is supported. But I will ask my web developer to make sure we don't have that turned off.

Speaking of images, I noticed that one of the images I inserted into the tutorial isn't showing up when I play the SWF file locally. But if I play the HTML5 locally, the image shows up. It's just a regular image that I inserted...but I wonder if the javascript error is causing that.

Lilybiri
Legend
December 11, 2016

You could temporarily hide that image in output, to check if that image is causing the problems?