Copy link to clipboard
Copied
I'm using RH 8.0.2 to generate webhelp.
I took advantage of a few snippets from Peter Grainge's site and have 3 new toolbar buttons for my project:
Here's where I need help.
1. Report an Issue links to a sharepoint site on our network. The link works fine, but displays inside the topic frame. What is the proper Inline JavaScript to open the sharepoint page in a new window? For ease of reply, say the link is http://www.mysite.com/issues/default.aspx
2. Send link by Email sometimes creates a draft email when I click it in the preview pane, but I haven't figured out the reproducible conditions. It doesn't seem to work in the generated files however. A similar issue seems to occur for the Copy Link to Clipboard button - sometimes works in preview, but not in generated webhelp.
Notes:
The Javascript I used for Send Link by Email, from Grainge's snippet 39, is:
window.location=('mailto:someone@yourdomain.com?Subject=Useful Information&body=This page might be useful to you: ' + window.parent.frames[1].frames[1].document.title +' ' + escape(window.parent.frames[1].frames[1].document.location))
Note, this script throws an error as you preview, 'window.parent.frames.1.frames.1.document is null or not an object.
The Javascript I used for Copy Link to Clipboard, from Grainge's snippet 114, is:
function CopyURL()
{
var myHerf=parent.frames[1].bsscright.location;
var title=parent.frames[1].bsscright.document.title;
if(window.clipboardData)
{
var tempCurLink=title + "\n" + myHerf;
var ok=window.clipboardData.setData('Text',tempCurLink);
alert("Press Ctrl + V to Paste the link in your email");
}
}
Any help appreciated!
Copy link to clipboard
Copied
Hi there
Some of the answers will be found at the link below:
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
I chose to download the zipped chm file, but cannot display the topics. Any suggestions?
Copy link to clipboard
Copied
Hi there
When you visited the page where you downloaded, I'm guessing you failed to also take a look at the link on the page designed to help with this?
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
Sorry. Once I had the file I didn't read any further. Might want to put that link ahead of the table! Thanks for the excellent resource.
Copy link to clipboard
Copied
Regarding the email button:
I followed the snippet instructions as closely as possible but there's a problem somewhere.
After generating the project in WebHelp, I open it in Microsoft Explorer and immediately an email pops open as if I had clicked the new toolbar button. The link created points to the Default Topic. Unfortunately, the button does not work when clicked: no email, no response at all.
Oddly enough, two email pop open when I drag a border to resize the browser window (without clicking the button at all). I think a step is missing that associates the action to the button itself.
Does something go into the OnClick: field? The snippet instructions provided do not mention the JavaScript area and Inline JavaScript, but I assume that's where the code goes.