Skip to main content
Gravenstein
Inspiring
February 5, 2016
Answered

Cleaning up old script in RH code--InitEffects...x-on-pageload

  • February 5, 2016
  • 1 reply
  • 745 views

I am upgrading help projects from RH9 to RH2015, and have come across some topics that include old script code in them. It's causing errors in IE. In its simplest form the code looks like this:

Is there an easy to clean this up? Something similar to Tools > Update DHTML, perhaps? If I have to, I'll write a script to clean this up, but most instances are not laid out quite this simply, so i was kind of hoping for a canned solution.

Suggestions welcome. Thanks.

G

This topic has been closed for replies.
Correct answer Willam van Weelden

As suggested, I also use scripts to fix this up. I normally get the contents of the token (token.name) and do a test: if(token.name.indexOf("x-on-pageload") != -1) to check whether the conditions are met. If you identify two or three keywords that are unique, you can quickly remove the content. - Just my two cents.

1 reply

Peter Grainge
Community Expert
Community Expert
February 6, 2016

The only other solution that I can think of is something like Text Crawler.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Gravenstein
Inspiring
February 8, 2016

No out-of-the-box answer for me, then. Thanks, Peter.

G

Willam van Weelden
Willam van WeeldenCorrect answer
Inspiring
February 9, 2016

As suggested, I also use scripts to fix this up. I normally get the contents of the token (token.name) and do a test: if(token.name.indexOf("x-on-pageload") != -1) to check whether the conditions are met. If you identify two or three keywords that are unique, you can quickly remove the content. - Just my two cents.