Highlighted

Using RH_ShowHelp() in combination with responsive HTML5 (output)

Explorer ,
Dec 27, 2016

Copy link to clipboard

Copied

Hello,

I'me using RH_2015 (trial version).

Our intensions with RH is to call a help-page from selected places in a html-page.

I've made a project with the use off 2 different output's:

- 'WebHelp'

- 'Responsive HTML5' (primary choice for our projects)

I use the 'RH_Showhelp' function to call a help-file by the hand of map-id numbers.

I can open the help-file with 'WebHelp' (output) perfectly.

If I try the same with the 'Responsive HTML5' (output), I get script errors. (using F12 within Internet Explorer)

  * SCRIPT438: Object doesn't support property or method 'trim'

    File: rh.min.js, Line: 6, Column: 9763

                                                                                  i=s[0].trim(), gives the error. => the value of s[0] = ""

                                                                                  I noticed that 'rh.min.js' is not used with 'Webhelp' (output).

  * SCRIPT5007: Object expected

    File: common.min.js, Line: 6, Column: 910

                                                                                 t=e("KEY_MERGED_PROJECT_MAP") => e = undefined

  * SCRIPT5007: Object expected

    File: layout.min.js, Line: 6, Column: 625

                                                                                 n.publish(e("KEY_SHOW_TAGS") => e = undefined

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: projectdata.js, Line: 6, Column: 1

                                                                                rh.consts('DEFAULT_TOPIC', encodeURI("#Algemeen.htm".substring(1)));

                                                                                => rh.consts = undefined

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: loadprojdata.js, Line: 5, Column: 2

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: usersettings.js, Line: 25, Column: 2

  * SCRIPT5007: Unable to get property 'publish' of undefined or null reference

    File: whtagdata.js, Line: 8, Column: 1

  * SCRIPT438: Object doesn't support property or method 'trim'

    File: rh.min.js, Line: 6, Column: 7614

Do I need to change something within the function, according the used output?

I call the function as following:

RH_ShowHelp(0, root + $.trim(jsonData.file) + "/index.htm>" + $.trim(jsonData.scherm), HH_HELP_CONTEXT, $.trim(jsonData.mapNr));

The used json-file:

{

  "swLrh":"0",

  "file":"Steekkaart_RespHTML5                                                                                ",

  "mapNr":"1                                                                                                   ",

  "scherm":"                    ",

  "veldId":"                                                                                                    ",

  "key":"001-006-001-001-001-000"

}

root   => the place where the output of the projects are.

I still have the same problems.

I use RoboHelp_CSH.js (May 11 2015, patch 2015.04).

The problem comes from within the function loadData(sFileName).

I changed it like this:

http://localhost/index.htm?rhnewwnd=0&rhcsh=1&rhmapno=3

Now it works

Views

687

Likes

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

Using RH_ShowHelp() in combination with responsive HTML5 (output)

Explorer ,
Dec 27, 2016

Copy link to clipboard

Copied

Hello,

I'me using RH_2015 (trial version).

Our intensions with RH is to call a help-page from selected places in a html-page.

I've made a project with the use off 2 different output's:

- 'WebHelp'

- 'Responsive HTML5' (primary choice for our projects)

I use the 'RH_Showhelp' function to call a help-file by the hand of map-id numbers.

I can open the help-file with 'WebHelp' (output) perfectly.

If I try the same with the 'Responsive HTML5' (output), I get script errors. (using F12 within Internet Explorer)

  * SCRIPT438: Object doesn't support property or method 'trim'

    File: rh.min.js, Line: 6, Column: 9763

                                                                                  i=s[0].trim(), gives the error. => the value of s[0] = ""

                                                                                  I noticed that 'rh.min.js' is not used with 'Webhelp' (output).

  * SCRIPT5007: Object expected

    File: common.min.js, Line: 6, Column: 910

                                                                                 t=e("KEY_MERGED_PROJECT_MAP") => e = undefined

  * SCRIPT5007: Object expected

    File: layout.min.js, Line: 6, Column: 625

                                                                                 n.publish(e("KEY_SHOW_TAGS") => e = undefined

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: projectdata.js, Line: 6, Column: 1

                                                                                rh.consts('DEFAULT_TOPIC', encodeURI("#Algemeen.htm".substring(1)));

                                                                                => rh.consts = undefined

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: loadprojdata.js, Line: 5, Column: 2

  * SCRIPT438: Object doesn't support property or method 'consts'

    File: usersettings.js, Line: 25, Column: 2

  * SCRIPT5007: Unable to get property 'publish' of undefined or null reference

    File: whtagdata.js, Line: 8, Column: 1

  * SCRIPT438: Object doesn't support property or method 'trim'

    File: rh.min.js, Line: 6, Column: 7614

Do I need to change something within the function, according the used output?

I call the function as following:

RH_ShowHelp(0, root + $.trim(jsonData.file) + "/index.htm>" + $.trim(jsonData.scherm), HH_HELP_CONTEXT, $.trim(jsonData.mapNr));

The used json-file:

{

  "swLrh":"0",

  "file":"Steekkaart_RespHTML5                                                                                ",

  "mapNr":"1                                                                                                   ",

  "scherm":"                    ",

  "veldId":"                                                                                                    ",

  "key":"001-006-001-001-001-000"

}

root   => the place where the output of the projects are.

I still have the same problems.

I use RoboHelp_CSH.js (May 11 2015, patch 2015.04).

The problem comes from within the function loadData(sFileName).

I changed it like this:

http://localhost/index.htm?rhnewwnd=0&rhcsh=1&rhmapno=3

Now it works

Views

688

Likes

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
Dec 27, 2016 0
LEGEND ,
Dec 31, 2016

Copy link to clipboard

Copied

The Responsive HTML5 uses a different API from WebHelp. So calling it with the WebHelp API (RH_ShowHelp) won't work.

For Responsive HTML5, use RH_ShowMultiscreenHelpWithMapNo or RH_ShowMultiscreenHelpWithMapId. Be sure to get the CSH API from the latest RoboHelp version as these calls are only introduced in the API starting RoboHelp 10.

Likes

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
Reply
Loading...
Dec 31, 2016 0
Explorer ,
Jan 02, 2017

Copy link to clipboard

Copied

I still have the same problems.

I use RoboHelp_CSH.js (May 11 2015, patch 2015.04).

The problem comes from within the function loadData(sFileName).

I changed it like this:

http://localhost/index.htm?rhnewwnd=0&rhcsh=1&rhmapno=3

Now it works

Likes

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
Reply
Loading...
Jan 02, 2017 1