Webhelp Plus: "Cryptic" characters in javascript

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Pannonian
Propeller Head
Posts: 20
Joined: Tue Jan 11, 2011 2:53 am
Location: Vienna, Austria
Contact:

Webhelp Plus: "Cryptic" characters in javascript

Post by Pannonian »

I have a problem with our generated webhelp plus output. On of our customers wants to upload it in their information portal, which checks every file for its correct syntax. They say there are cryptical characters in the javascript, and because of that the system denies the import.

This error occurs within the file ...\Content\SkinSupport\MadCapAll.js. In this file there are some characters, that seem to divide the script.

Image

I don't know if i can just delete this signs, or if there's any other way coping with this problem
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Webhelp Plus: "Cryptic" characters in javascript

Post by RamonS »

That looks like a BOM that isn't supposed to be there. Make a backup of the file and then delete the characters. If that works then the next question is on how to make the characters not go into the file in the first place. Are these characters already in the file right after generating the output?
Pannonian
Propeller Head
Posts: 20
Joined: Tue Jan 11, 2011 2:53 am
Location: Vienna, Austria
Contact:

Re: Webhelp Plus: "Cryptic" characters in javascript

Post by Pannonian »

Just tested it. We get them as soon as we create the build.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Webhelp Plus: "Cryptic" characters in javascript

Post by RamonS »

At that point I'd give MadCap support a call. Alternatively, you can take a look at the sources for these js files. Most of them are canned and do not get recreated on each build, but merely copied from Program Files\MadCap Software\MadCap Flare V7\Flare.app\Resources\WebHelp\Content\SkinSupport. You will find a file with the same name there. Make a copy of that file and keep the copy somewhere outside of the Flare app folder, then edit the js file and see if the source is already goofed up. If yes, remove the characters from the source file and try again. If that hoses Flare you'd need to reinstall, but you should be able to get back to square one by putting the backup back in.
Post Reply