Skip to main content
Participating Frequently
September 19, 2008
Question

Back and Print button not working

  • September 19, 2008
  • 5 replies
  • 3210 views
Our tech author just managed to get the print and back buttons to display on our webhelppro project, but nothing happens when they are clicked!

Any ideas what might be wrong? I thought once they display, they should work lol
This topic has been closed for replies.

5 replies

Peter Grainge
Community Expert
Community Expert
November 14, 2008
See Snippett 24 on my site.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
November 12, 2008
Resolution found :) A posting by "Authorgraphic" on another site (I can only assume this is the same "Authorgraphic" on this forum) posted the following:

"window.parent.frames[1].frames[1].focus();window.parent.frames[1].frames[1].print();

I have tested this in Internet Explorer 7, Mozilla Firefox 3, and it works OK.
It also works in Apple Safari 3.1.2, although the printout it scaled down to
about 80% of correct size (text and screenshots). "

This goes into WebHelp Skin Editor > Toolbar tab > Print Topic > Edit icon. Custom Toolbar Item > Action tab > Javascript OnClick

Entries are not required in the inline javascript section.
Participant
November 14, 2008
I tried your solution and while it worked on my machine when I compiled the help system (clicking the Print button did, in fact, bring up the Print dialog), my client informed me that when she loaded the HTML help system onto the Web site server, it refused to function. She said she received an "Error on Page" message. She also mentioned that when she hovers the cursor over the Print button, the tooltip reads Javascript null. Any thoughts? I am a technical writer working on a help system and my client is beside herself. She really wants this to work although I did tell her that the print functionality in RoboHELP HTML is nonexistent because the help topic opens in a browser window and users will use the print functionality of the browser to print help topics. I confirmed this with Adobe Technical Support; the Print function is only avaliable when building help files in RoboHELP for Word (for stand-alone software program help files), but not in RoboHELP HTML.
Inspiring
November 12, 2008
This isn't working for me in RH 7.0.2 (WebHelp, not WebHelp Pro). The new button appears, has hover text and an image, however on click doesn't trigger a print dialogue.

FF 3, IE 8 (yes.. beta)
No pop-up blockers, etc.
Peter Grainge
Community Expert
Community Expert
September 22, 2008
See Snippet 24 on my site.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
GleedoAuthor
Participating Frequently
September 22, 2008
quote:

Originally posted by: Peter Grainge
See Snippet 24 on my site.



Thank you Peter, that did the trick :)

I havent done javascript for years and couldnt remember to use top. etc..

GleedoAuthor
Participating Frequently
September 22, 2008
OK, i just realised you need to add javascript to print and back buttons to get them to work lol.....ooops.

I go the back button working just fine.

However, i can not get the print to work. This is because i do not know the name of the <iframe> that the main content is displayed in.

I have toolbar up top, toc down left and main content window to right.

Can anyone tell me the name of the content frame?

Im assuming frames are used of course.

Thanks
October 6, 2010

What is the javascript for the back button?

Willam van Weelden
Inspiring
October 8, 2010

Hi,

history.go(-1)

Greet,

Willam