Solved

Emailing results of Captivate questions

Posted on 2008-10-14
1
501 Views
Last Modified: 2013-11-12
Hi,
I am creating a tutorial in Captivate, and we'd like a copy of the answers given to questions throughout the tutorial--when I try to enable this feature, it doesn't seem to be working.  Do I need to change this code somehow?  Thanks!
<script src="standard.js" type="text/javascript"></script>

<script type="text/javascript">

<!-- Begin

var gstrEmailTo = "";

var gstrEmailSubject = "";

var gstrEmailBody = "";

var myVar = 0;
 

function appendEmailBody(strBody)

{

	var temp_str = strBody;

	while(temp_str.indexOf("|") > -1)

	{

		temp_str = temp_str.substr(0,temp_str.indexOf("|")) + "\r" + temp_str.substr(temp_str.indexOf("|") + 1)

	}

	gstrEmailBody += temp_str + "\r";

}
 

function sendMail()

{

	document.emailForm.action = 'mailto:' + gstrEmailTo + '?subject=' + gstrEmailSubject

	document.emailForm.elements["Results"].value = "\r" + gstrEmailBody;

	document.emailForm.submit();

}
 

function padMail(strAddress, strSubject, strBody)

{

	gstrEmailTo = strAddress;

	gstrEmailSubject = strSubject;

	var temp_str = strBody;

	while(temp_str.indexOf("|") > -1)

	{

		temp_str = temp_str.substr(0,temp_str.indexOf("|")) + "\r" + temp_str.substr(temp_str.indexOf("|") + 1)

	}

	gstrEmailBody = temp_str + "\r";

}

// End -->

</script>
 

<form name="emailForm" action = "" method="POST" enctype="text/plain">

<input name="Results" type="hidden">

</form>

Open in new window

0
Comment
Question by:jianxin9
1 Comment
 

Accepted Solution

by:
jianxin9 earned 0 total points
ID: 22816358
close
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now