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

IE8 and javascript - Back/Forward button in Robohelp

New Here ,
Jan 16, 2011 Jan 16, 2011

Copy link to clipboard

Copied

I am using Robohelp 7. I use the following script for my Back button - javascript:history.back(1);

This works fine in FireFox and IE7, but not in IE8. Has anyone found a solution for javascript issues in IE8?

Thanks,

Deborah

Views

3.6K

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
community guidelines
LEGEND ,
Jan 17, 2011 Jan 17, 2011

Copy link to clipboard

Copied

Hi,

Try javascript:history.go(-1);

Does that solve your problem?

Greet,

Willam

Votes

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
community guidelines
New Here ,
Jan 17, 2011 Jan 17, 2011

Copy link to clipboard

Copied

No. We tried that too!

Votes

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
community guidelines
LEGEND ,
Jan 17, 2011 Jan 17, 2011

Copy link to clipboard

Copied

Hi,

Just did a small test on IE8 and history.go(-1) worked fine...

Can your problem be an IE setting? Can you try on another pc or use IETester?

Also, where are your buttons located? In the toolbar or in your topic? Can you share the HTML and complete javascript of your buttons?

Greet,

Willam

Votes

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
community guidelines
New Here ,
Jan 17, 2011 Jan 17, 2011

Copy link to clipboard

Copied

1) We (one of the programmers and I) tried this code in a "clean" IE8 environment and all three buttons worked:

<

html>

<

head>

<

title>Test Html</title>

</

head>

<

body>

<input type='button' value="history.back(1)" onclick="javascript:history.back(1);" />

<input type='button' value="history.go(-1)" onclick="javascript:history.go(-1);" />

<input type='button' value="history.back()" onclick="javascript:history.back();" />

</

body>

 

</

html>

2) The button is in the Robohelp toolbar.

4RobohelpHelp.gif

3) This is the Robohelp code that generates the HTML:

addButton("custom17587",BTN_TEXT|BTN_IMG,"Back","","javascript:history.back(1);  ","","",0,0,"backbuttonon.gif","backbuttonon.gif","","backbuttonon.gif","","");

4) This is the HTML code that Robohelp generates for the Back button:

The code that run is :

<TBODY>

<TR>

<TD onmouseup="onBtnMouseUp(event, 4);" class=clsBtnNormal onmouseover="onBtnMouseOver(event, 4);" onmouseout="onBtnMouseOut(event, 4);" onmousedown="onBtnMouseDown(event, 4);" onclick="onBtnClick(event);return false;" vAlign=center noWrap align=middle><A id=btncustom17587 class=btncustom17587 onmouseover=cusOnMouseOver(0); title=Back onclick="cusOnClick(0);return false;" href="javascript:void(0);"><IMG border=0 alt=Back align=absMiddle src="http://localhost:8080/jserf/help/en_US/PortalHelp/backbuttonon.gif"> Back</A></TD>

5) We tried all three options from #1 above in the Robohelp code (#4 above) and none of them worked in IE8.

Votes

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
community guidelines
LEGEND ,
Jan 18, 2011 Jan 18, 2011

Copy link to clipboard

Copied

Hi,

Can you try the following:

In your custom button, add the following code on the onclick: top.frames[1].frames[1].history.go(-1);:

Capture1.png


Leave the link field empty. This sets only the topic to go to the previous page. (If there is one.)

Greet,

Willam

Votes

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
community guidelines
New Here ,
Jan 19, 2011 Jan 19, 2011

Copy link to clipboard

Copied

LATEST

Thank you, William, for all of your helpful suggestions. The programmer with whom I am working tried EVERYTHING to no avail. What we found in the end was a line of code in OUR application that opens the help window.

window.open(‘systemHelp.html’, '_blank', 'height=800 , width=600', true);

The fourth parameter "replace parameter" is responsible for history. This has worked as is until IE8. Now, we changed the fourth parameter to "false" and it works as desired. Other browsers (FireFox, etc.) were not affected.

Thanks again for your help!!!

All the best,

Deborah

Votes

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
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp