Highlighted

How do I save an edited JavaScript file?

Community Beginner ,
Feb 08, 2016

Copy link to clipboard

Copied

This is my first day working with RoboHelp HTML.  I've read some of the documentation, but I cannot find how to get an edited script file's changes to save after generation.  When we launch the generated Help, a popup box appears with this message: "The webpage you are viewing is trying to close the window. Do you want to close the window?".   I can fix the problem of by adding this line of JavaScript code: "window.open('', '_self', '');"  after line 174 in the loadcsh.js script.  The problem is that this file gets overwritten every time the project is generated.

You'll want to update the seed files. There are located in C:\Program Files (x86)\Adobe\Adobe RoboHelp 2015\RoboHTML\ResponsiveHelpExt\widgets\common\scripts (Assuming you are using Responsive HTML5 output)

But in this case, you can also change the CSH call of your application to avoid the popup. See: http://www.wvanweelden.eu/articles/context-sensitivity-responsive-and-multiscreen-html5

Topics

HTML

Views

298

Likes

Translate

Translate

Report

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

How do I save an edited JavaScript file?

Community Beginner ,
Feb 08, 2016

Copy link to clipboard

Copied

This is my first day working with RoboHelp HTML.  I've read some of the documentation, but I cannot find how to get an edited script file's changes to save after generation.  When we launch the generated Help, a popup box appears with this message: "The webpage you are viewing is trying to close the window. Do you want to close the window?".   I can fix the problem of by adding this line of JavaScript code: "window.open('', '_self', '');"  after line 174 in the loadcsh.js script.  The problem is that this file gets overwritten every time the project is generated.

You'll want to update the seed files. There are located in C:\Program Files (x86)\Adobe\Adobe RoboHelp 2015\RoboHTML\ResponsiveHelpExt\widgets\common\scripts (Assuming you are using Responsive HTML5 output)

But in this case, you can also change the CSH call of your application to avoid the popup. See: http://www.wvanweelden.eu/articles/context-sensitivity-responsive-and-multiscreen-html5

Topics

HTML

Views

299

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
LEGEND ,
Feb 09, 2016

Copy link to clipboard

Copied

You'll want to update the seed files. There are located in C:\Program Files (x86)\Adobe\Adobe RoboHelp 2015\RoboHTML\ResponsiveHelpExt\widgets\common\scripts (Assuming you are using Responsive HTML5 output)

But in this case, you can also change the CSH call of your application to avoid the popup. See: http://www.wvanweelden.eu/articles/context-sensitivity-responsive-and-multiscreen-html5

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Feb 10, 2016

Copy link to clipboard

Copied

The first solution worked.  Thank you very much.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...