Link to home
Start Free TrialLog in
Avatar of jianxin9
jianxin9

asked on

Getting results for questions answered in a Captivate project

How does code need to be edited in order to get results from questions in a Captivate project?  Thanks!  Currently, I'm not receiving anything.
<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

Avatar of Merete
Merete
Flag of Australia image

Hi jianxin9,  the zone you chose Multimedia Applications is kind of a general zone may not be the best choice for your question.
may I suggest you do either of these
 use the Request Attention. That'll ping attention to a moderator who will send out requests to specialised experts who have volunteered to assist with questions not getting any assistance.
or
 delete it and repost to 3 zones since you are a premium member you can do that.
suggest these zones
https://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/
https://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Controls/
https://www.experts-exchange.com/Software/Photos_Graphics/Illustration/Adobe_Illustrator/

regards Merete
ASKER CERTIFIED SOLUTION
Avatar of jianxin9
jianxin9

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good Luck ;P