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

javascript formatting issue

New Here ,
Apr 06, 2011 Apr 06, 2011

Copy link to clipboard

Copied

Does anyone know if there is a setting in RH8 HTML to format the scripts correctly?  Having to update the format each time the library is published will be a pain.

<script type="text/javascript" language="JavaScript1.2">//<![CDATA[
if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
TextPopupInit('a2','POPUP380679909');
//]]>

</script>

instead of:

<script type="text/javascript" language="JavaScript1.2">//<![CDATA[
if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
TextPopupInit('a2','POPUP380679909');
//]]></script>

Views

507

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
community guidelines
LEGEND ,
Apr 06, 2011 Apr 06, 2011

Copy link to clipboard

Copied

Votes

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
community guidelines
New Here ,
Apr 06, 2011 Apr 06, 2011

Copy link to clipboard

Copied

Hi Rick,

Yes, currently external users connected to https via vpn are receiving a javascript error as it's not in the correct format the vpn accepts.  Users currently can't open any of the javascript links such as the textpopup feature.

Thanks

Ria

Votes

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
community guidelines
LEGEND ,
Apr 06, 2011 Apr 06, 2011

Copy link to clipboard

Copied

Hmmm, interesting. That's the first I've ever heard where this would cause issues. Strange.

I suppose you could run a massive search and replace using a tool such as FAR or BKReplace.

FAR link

BKReplace link

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

Votes

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
community guidelines
Advisor ,
Apr 07, 2011 Apr 07, 2011

Copy link to clipboard

Copied

Using FAR, for example, you would search:

Starting with: //]]>
Ending with: </script>
Replace with: //]]></script

You'd have to check your particular workflow to decide whether to run this against your source code before you Generate/Publish or against your output code after you Generate/Publish.

We run FAR batch files scheduled by Z-Cron, and FAR is insanely fast.


Good luck,
Leon

Votes

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
community guidelines
New Here ,
Apr 07, 2011 Apr 07, 2011

Copy link to clipboard

Copied

LATEST

thanks Rick and Leon... i'll look into using FAR to update the code.

Votes

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
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp