Skip to main content
Inspiring
November 1, 2019
Answered

Script error when opening a CHM file

  • November 1, 2019
  • 8 replies
  • 1277 views

Hello,

When I open a CHM file I generated from my RH 2019 Classic project, I get the following script error:

URL https: //code.jquery.com/jquery-3.2.1.min.js

I had a Captivate preso in my project, and I removed all files related to that project except for one folder with a "missing" topic (in Project Manager it displays with a red x), which I can't seem to remove. Any insight would be appreciated! Thank you!

Dawn 

This topic has been closed for replies.
Correct answer DawnPAmkai

Hi Peter,

A co-worker was able to identify what was causing the jquery script error: it was a bit of code a former employee had put in the file to create a "show all" button to open up all drop-down text at once in a topic (a "nice to have" not a "must have") this code works with Responsive HTML5, which is our normal output type, but not with CHM. Thanks again for your help!

Dawn

8 replies

Community Expert
November 3, 2019

Somewhat off topic, but as it sounds like you've just started generating them, I just thought I'd point out that chm is a Microsoft format that they haven't updated or supported in something like 18 years. 

Peter Grainge
Community Expert
Community Expert
November 1, 2019

I hadn't been able to get back to this so it was good news that meantime you have resolved it. That code definitely would not work in a CHM. 🙂

 

Depending on how it was implemented, perhaps you could tag it out for CHMs?


www.grainge.org

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
DawnPAmkaiAuthorCorrect answer
Inspiring
November 1, 2019

Hi Peter,

A co-worker was able to identify what was causing the jquery script error: it was a bit of code a former employee had put in the file to create a "show all" button to open up all drop-down text at once in a topic (a "nice to have" not a "must have") this code works with Responsive HTML5, which is our normal output type, but not with CHM. Thanks again for your help!

Dawn

Inspiring
November 1, 2019

Thanks so much, Peter. I was able to delete the file and folder by following your advice. But, unfortunately, I'm still not able to generate a CHM file without the jquery error, even after restarting my computer. Any other suggestions? Thank you!

Peter Grainge
Community Expert
Community Expert
November 1, 2019

From what I can make out, the CPZ file you could not delete was added as a baggage file. How did you remove it? I am guessing you did so in File Explorer. I found the file referenced in rhbag.apj that lists all the baggage files.

 

With the project closed, open that file in in a text editor such as notepad, you will find the first entry is as below.

 

<file>
<name>app_Config_Desktop-Captivate_Test\Application_Config_Desktop.cpz</name>
<usercreated>true</usercreated>
<comments/>
</file>

 

Delete those lines only, close the file and then delete the project's CPD file. Reopen the project and you will see the folder is there but the missing file will not be listed and you will be able to delete the folder.


www.grainge.org

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
November 1, 2019

File transfer is complete!

Inspiring
November 1, 2019

The file is uploading now. Thank you!

Peter Grainge
Community Expert
Community Expert
November 1, 2019

Try deleting the CPD file for the project, then reopen it and see if the missing topic still shows as missing.


www.grainge.org

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
November 1, 2019

Thanks for your reply, Peter! I just tried that and it didn't work. Do you know of anything else I can try?

Inspiring
November 1, 2019

Same error with the CHM file and the missing topic still shows as missing