Skip to main content
Inspiring
August 25, 2014
Question

Multiscreen HTML5 Map ID file: loadcsh.js - rhmapno parameter is converted to uppercase and CSH not working

  • August 25, 2014
  • 1 reply
  • 752 views

Our developer is reporting that RoboHelp 11 is converting the parameter rhmapno to uppercase RHMAPNO in the loadcsh.js Multiscreen HTML5 output file, and the CSH is not working (see below from the file).

Is anyone else having this problem and can suggest a solution?

function loadTopic(defaultTopicURL)

{

  gDefTopicURL = defaultTopicURL;

  var mapnum = getUrlParameter(RHMAPNO);

  if(mapnum!="")

  {

  showCSHTopic(ITEMTYPEMAPNO, mapnum);

  return true;

  }

Thanks.

Gina

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
August 26, 2014

There are several copies of that script in your Rh installation folder. I just looked at the one in

C:\Program Files (x86)\Adobe\Adobe RoboHelp 11\CSH API\iOS\helpfiles\iphone\template\scripts

and it is already set to uppercase there so it is not getting changed.


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.
Participant
August 26, 2014

Hi Peter,

The issue has to do with the actual value held by the "RHMAPNO" variable. The Regular Expression comparison is case sensitive and when comparing the "rhmapno" (this is the value held by RHMAPNO varaible) against the redirected URL parameter (index.htm?RHMAPNO=2002)


This results in the failure of the appropriate section help load.

Willam van Weelden
Inspiring
August 26, 2014

RHMAPNO is a constant with the value ""rhmapno" in lower case (see constants.js). So while your CSH isn't working, this doesn't seem to be the problem. Or are you putting the URL variable into upper case? If so, what method are you using for calling the help? The default CSH API?

Are you certain that the map files are all selected in the SSL settings? The most common cause for CSH not working is when one or more map files are not selected.

If the upper case is the problem, find the file constants.js in the RH installation folder. If you change the value rhmapno to upper case, all should work well.

Kind regards,

Willam