I'm using a JavaScript published in STC's Intercom magazine (
http://www.stc.org/intercom/PDFs/2006/20067-8_14-17.pdf)
for sending an e-mail message from a help topic to obtain feedback
from users. I've followed the instructions for doing this,
including adding the JavaScript file as a baggage file to the
project, a script reference, and adding a link to call the script
from the topic, but it doesn't work. When I test the link on the
topic, I get an "Error on page" message. When I click the View this
item icon in Robohelp, I get an Internet Explorer script error:
An error has occurred in the script on this page
Line: 5
Char: 15
Error: Invalid character
Code: 0
I have not written or debugged JavaScript before, just more
or less cut and pasted existing scripts and changed variables, so
I'm at a loss. Any idea what the problem is?
Code appears below. Many thanks!
Brett
Here's the script:
<!--
function sendFeedback()
{
var mailtoS =
“mailto:<brett.peruzzi@pfpc.com>” +
“&Subject=Documentation feedback:
<test help file>” +
“&Body=” + “Topic title:” +
document
.title +
“%0ABrowser:” + clientInformation
.appName +
“%0AVersion:” + clientInformation
.appVersion +
“%0A%0AComments:”;
window.open( mailtoS );
}
//-->
Here's the script reference:
<script type="text/javascript"
language=javascript1.2
src="feedback.js"></script>
And here's the link:
<p CLASS=BodyText
style="font-size: 9pt;
font-weight: normal;
font-style: normal;"><a
href="javascript:sendFeedback()">Provide
feedback on this help topic</a></p>