<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Same here.<br>Think it's just the syntax highlighter not realizing it's a URL.<br>It will actually function as expected.<br><br><hr id="stopSpelling">Date: Mon, 13 Jun 2011 15:08:35 -0700<br>From: Paul.Swanson@harlandfs.com<br>To: knowledgeware@kccsoft.com; xerte@lists.nottingham.ac.uk<br>Subject: [Xerte] Re: xerte 2 desktop: SendandLoad<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';color:black;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';color:black;}
.ExternalClass pre
{margin-bottom:.0001pt;font-size:10.0pt;font-family:'Courier New';color:black;}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';color:black;}
.ExternalClass span.ecxHTMLPreformattedChar
{font-family:Consolas;color:black;}
.ExternalClass span.ecxBalloonTextChar
{font-family:'Tahoma','sans-serif';color:black;}
.ExternalClass span.ecxEmailStyle22
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxEmailStyle23
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxEmailStyle24
{font-family:'Calibri','sans-serif';color:#1F497D;font-weight:normal;font-style:normal;text-decoration:none none;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">It might be just the syntax highlighter going weird on you. Are you sure it doesn’t work with a full URL? What I do is set a variable to either http://localhost or my company’s actual domain, based on whether I’m in development or production mode. </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">// set domain variable depending on live being true</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">live = false;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">if (live) {</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">    domain = 'http://training.harlandds.com';</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">} else {    </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">    domain = 'http://localhost';</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">}</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Then I use: domain + ‘/path/to/myscript.php’ for the URL when using sendAndLoad.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif';color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif';color:windowtext"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>KnowledgeWare<br><b>Sent:</b> Monday, June 13, 2011 2:49 PM<br><b>To:</b> 'Xerte discussion list'<br><b>Subject:</b> [Xerte] xerte 2 desktop: SendandLoad</span></p></div></div><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D">myData.sendAndLoad("email_test.asp", myData, "POST")</span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Question: as soon as I put ‘http://’ etc into the line above it turns all to the right of // into a comment....so I’m assuming this is to prevent ugly cross domain stuff from happening? Is there any way I can include a full URL in lieu of ‘email_test.asp’ above (just to make testing this a heck of a lot easier?).</span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D">Thanks</span></p><p class="ecxMsoNormal"><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D">RonM2</span><span style="font-size:14.0pt;font-family:'Calibri','sans-serif';color:#1F497D"></span></p></div></div><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>

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
<BR>
<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

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.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.                                         </body>
</html>