This content has been marked as final. Show 5 replies
I guess the link you provided only works if you are a dues paying STC member?
Just at first glance here, I'm wondering if your line breaks are occurring at odd places. Sometimes this is more than enough to cause that nifty crunching sound as our scripts break.
Hopefully others will offer up more, different or better insights here.
You could try this one.
Here's what's in my feedback_script.js file:
var mailSubject = Subject Line Text';
var mailBody = 'I have comments on this page: ' + location.href;
var mailDisplay = '<img title= "Send us your comments." src="../../letter.gif" border=0>';
+ '?subject=' + escape(mailSubject)
+ '&body=' + escape(mailBody)
+ '">' + mailDisplay + '</a>');
letter.gif is at the root, two steps above, as is feedback_script.js. The call in each file is:
style="font-weight: normal; x-condition: Online;"><script src="../../feedback_script.js"
Brett, Rick, & Leon -
I ran the script through its paces, and found that the STC newsletter typographers have done the misdeed. It doesn't show up here, but their sendFeedback() function is infested with typographic quotes, rather than ascii-compliant quotemarks.
If you can't see them with your current editor, look at the file in Wordpad, and replace them there. A little typographic quote disinfectant, and it should work just fine.
Thanks for all of your help.
I replaced the incorrect quotation marks (they didn't show up that way in Notepad, but did in Wordpad), but the script still didn't run. I changed the line breaks and it ran, but with somewhat incorrect results.
All of the data appears in the To: field of the e-mail client (Notes 6.5 in my case), rather than also in the Subject and body fields.
<email@example.com>&Subject=Documentation feedback:<test help file>&Body=Topic title:Admin Site Log ReportBrowser:Microsoft Internet ExplorerVersion:4.0 (compatible; MSIE 6.0; Windows NT 5.0; PNCStd; InfoPath.1)Comments:
Of course, a message that gets sent like this gets returned as undeliverable. Any idea how I can get the subject and body areas of the e-mail to populate correctly?
Here's the revised script:
var mailtoS="mailto:<firstname.lastname@example.org>" +
"&Subject=Documentation feedback:<test help file>" +
"&Body=" + "Topic title:" + document.title +
"%0ABrowser:" + clientInformation.appName +
"%0AVersion:" + clientInformation.appVersion +
window.open( mailtoS );