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

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

Community Beginner ,
Aug 25, 2014 Aug 25, 2014

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

753
Translate
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
Community Expert ,
Aug 26, 2014 Aug 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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
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
Community Beginner ,
Aug 26, 2014 Aug 26, 2014

Thank you, Peter.  I will pass your info along to our developer.

Gina

Translate
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 ,
Aug 26, 2014 Aug 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.

Translate
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 ,
Aug 26, 2014 Aug 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

Translate
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
Guest
Aug 27, 2014 Aug 27, 2014

Hello William,

The resolution is to change the rhmapno variable to upper case in the constant.js file.  We tested this by manually editing one of the HTML5 profiles; however, within RoboHelp is there a way to permanently make this change to avoid human error?

Thank you for your help thus far, and thanks in advance for your continued help.

Erica

Translate
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 ,
Aug 28, 2014 Aug 28, 2014
LATEST

Permanently? You can change the seed files as Peter already indicated. And you can file a bug with Adobe: Adobe - Feature Request/Bug Report Form

Kind regards,

Willam

Translate
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