jianxin9
asked on
Emailing results of Captivate questions
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!
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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.