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>
Copy link to clipboard
Copied
Hi there
Aside from human readability, is it causing problems?
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7, 8 or 9 within the day! |
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
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.
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7, 8 or 9 within the day! |
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
Copy link to clipboard
Copied
thanks Rick and Leon... i'll look into using FAR to update the code.