Create a “Send Feedback†Link in Your Online Help
I add a Send Feedback link on every page of my online help. This allows users a point of connection when they can’t find what they’re looking for in the help. I add the Send Feedback link on the master page of my webhelp target, so one instance in the footer automatically propagates to every help topic.
The link contains a javascript that opens the user’s default email program and inserts the absolute URL of the help topic he or she was on at the time. This link is important in identifying the problem the user was trying to solve, because often the messages users send are cryptic and ungrammatical. It also lets you know they were actually in the help. Here’s the script:
<script type=â€text/javascriptâ€>document.write(“<a href=\â€mailto:tomjohnson1492@gmail.com?subject=ACME%20Application%20(“+document.title+â€)&body=â€+location.href+â€%0A%0Aâ€+â€\â€>Send Feedback</a>â€);</script>
Javascript Provide Feedback Link
Javascript Provide Feedback Link
I saw the following information online (@ http://www.idratherbewriting.com/2008/1 ... rom-users/) and I'd like to try it in my Webhelp. However, what would this link look like in my code?:
Victoria Clarke
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Javascript Provide Feedback Link
The code should be the same except for the email address and the subject. You need to put your email address in and change the subject parameter value according to what you want the subject to be.
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: Javascript Provide Feedback Link
Unfortunately, I keep getting an error when I try to save this code in my topic.
'\' is an unexpected token. The expected token is ' " or '''.
The position that's being targeted by the error is the \ that comes right after href=. Can you see any problems with the line or where the missing punctuation might be?
'\' is an unexpected token. The expected token is ' " or '''.
The position that's being targeted by the error is the \ that comes right after href=. Can you see any problems with the line or where the missing punctuation might be?
Code: Select all
<script type="text/javascript">document.write("<a href=\"mailto:name@email.com?subject=ACME%20Application%20"("+document.title+")&body="+location.href+"%0A%0A"+"\">Send Feedback</a>");</script>
Victoria Clarke
Re: Javascript Provide Feedback Link
Good news - if I strip out the script brackets from the beginning and end, and then use Insert Script from Flare, it works.
Victoria Clarke
Re: Javascript Provide Feedback Link
Javascript is finicky about using quotation marks within quotation marks. The slash is supposed to cause this "inner" quotation mark to not count, but making sure you get it done properly is troublesome. Replace the "inner" quotes with apostrophes instead.
Code: Select all
<script type="text/javascript">document.write("<a href='mailto:name@email.com?subject=ACME%20Application%20("+document.title+")&body="+location.href+"%0A%0A'>Send Feedback</a>");</script>
-
- Propeller Head
- Posts: 90
- Joined: Wed Nov 07, 2007 11:08 pm
- Location: Salt Lake City
- Contact:
Re: Javascript Provide Feedback Link
I just stumbled on this post. I had errors using the javascript code below. This is what I ended up adding:
Code: Select all
<script type="text/javascript">/*<![CDATA[*/document.write("<a href=\"mailto:youremail@company.org?subject=ACME%20Application%20("+document.title+")&body="+location.href+"%0A%0A"+"\">Send Feedback</a>")/*]]>*/</script>
-------------
my blog/podcast: http://www.idratherbewriting.com
my blog/podcast: http://www.idratherbewriting.com
Re: Javascript Provide Feedback Link
Hi Everyone,
I am new to flare and I need your advice in order to get this working on my project.
I have tried using the Java script and Flare keep promting an error message stating : Internal Error - Object reference not set to an instance of an object.
The code added:
<script type="text/javascript">/*<![CDATA[*/document.write("<a href=\"mailto:myemailid@companyname.com?subject=Test%20Feedback%20("+document.title+")>Send Feedback</a>")/*]]>*/</script>
I dont know what mistake i have made with the syntax.
Please somebody help me...
I am new to flare and I need your advice in order to get this working on my project.
I have tried using the Java script and Flare keep promting an error message stating : Internal Error - Object reference not set to an instance of an object.
The code added:
<script type="text/javascript">/*<![CDATA[*/document.write("<a href=\"mailto:myemailid@companyname.com?subject=Test%20Feedback%20("+document.title+")>Send Feedback</a>")/*]]>*/</script>
I dont know what mistake i have made with the syntax.
Please somebody help me...
Re: Javascript Provide Feedback Link
It took me several tries, but I finally figured out what this means:
1. Place your cursor where you want the link.
2. From the Insert menu, select Script.
3. In the Language field, select text/javascript.
4. In the Script Code field, paste this code (with the email address, subject, and link text changed appropriately):
5. Click OK.
Here are the steps to insert this feedback link:parsonsv wrote:Good news - if I strip out the script brackets from the beginning and end, and then use Insert Script from Flare, it works.
1. Place your cursor where you want the link.
2. From the Insert menu, select Script.
3. In the Language field, select text/javascript.
4. In the Script Code field, paste this code (with the email address, subject, and link text changed appropriately):
Code: Select all
document.write("<a href='mailto:email@company.com?subject=Online%20Help%20("+document.title+")&body="+location.href+"%0A%0A'>Send Feedback</a>");
Karen Miller