<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">It works locally as a single page piece.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I make a model of that page and import as Xerte content.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">When I run it, I am setting onscreen text after the sendandload, which appears, so the code is executing, but the sendandload is not happening.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">The page ID is  in the sendandLoad,</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="Tahoma" size="2">send_email_u2course.sendAndLoadVars....</font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Is the ID somehow changed when imported as a model?</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div style="font-family: Tahoma; font-size: 10pt; ">> From: Julian.Tenney@nottingham.ac.uk<br>> To: xerte@lists.nottingham.ac.uk<br>> Date: Thu, 24 Nov 2011 08:52:38 +0000<br>> Subject: [Xerte] Re: Can I send mail in toolkits via asp page<br>> <br>> It should do, yes. Make a local project so you can debug it. Is this security? Does your ado get called at all?<br>> ________________________________________<br>> From: xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of KnowledgeWare [knowledgeware@kccsoft.com]<br>> Sent: 24 November 2011 01:39<br>> To: 'Xerte discussion list'<br>> Subject: [Xerte] Re: Can I send mail in toolkits via asp page<br>> <br>> I have mail sending in desktop xerte 2 via sendAndLoadVars through an asp<br>> page.<br>> <br>> I've saved a page with an attached script icon with the email send code (as<br>> below) as a model and imported it to toolkits 1.5. The script icon is set to<br>> isFunc=0 in the toolkits version so it will execute (it's isFunc = 1 in the<br>> desktop version because it has to be called to execute). I'm expecting the<br>> code to execute and the mail to send. The testemail.asp page at this point<br>> doesn't need any parameters to run, it its called it will send a test mail,<br>> however I can't seem to call it at all with the script below.<br>> <br>> Does toolkits support the use of the script icon? Any reason I can't do<br>> this? Debug and trace don't bring anything up... is there a way to use debug<br>> or trace in toolkits?<br>> <br>> Thanks<br>> RonM2<br>> <br>> Works in desktop, but not after import to toolkits as a model:<br>> <br>> myData = new LoadVars();    //create the loadvars object, then add<br>> parameters<br>> myData.firstname = "Ron";<br>> myData.lastname = "McNutt";<br>> myData.email = "xyx@xyz.com";<br>> myData.phone = "604-000-0000";<br>> myData.addressee = "system@xyz";<br>> myData.program = "test course";<br>> <br>> //now send it<br>> send_email.sendAndLoadVars('HTTP://www.xyz.com/cgi-bin/testemail.asp',<br>> myData);<br>> <br>> <br>> <br>> _______________________________________________<br>> Xerte mailing list<br>> Xerte@lists.nottingham.ac.uk<br>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br>> <br>> _______________________________________________<br>> Xerte mailing list<br>> Xerte@lists.nottingham.ac.uk<br>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br>> <br>> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>> <br>> This message has been checked for viruses but the contents of an attachment<br>> may still contain software viruses which could damage your computer system:<br>> you are advised to perform your own checks. Email communications with the<br>> University of Nottingham may be monitored as permitted by UK legislation.<br>> <br></div>                                    </div></body>
</html>