[Xerte] Re: xerte 2 desktop: SendandLoad

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jun 14 09:03:14 BST 2011


That's right, it's just the syntax highlighter,

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 14 June 2011 01:10
To: Xerte list
Subject: [Xerte] Re: xerte 2 desktop: SendandLoad


Same here.
Think it's just the syntax highlighter not realizing it's a URL.
It will actually function as expected.
________________________________
Date: Mon, 13 Jun 2011 15:08:35 -0700
From: Paul.Swanson at harlandfs.com
To: knowledgeware at kccsoft.com; xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: xerte 2 desktop: SendandLoad
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.

// set domain variable depending on live being true
live = false;
if (live) {
    domain = 'http://training.harlandds.com';
} else {
    domain = 'http://localhost';
}

Then I use: domain + '/path/to/myscript.php' for the URL when using sendAndLoad.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: Monday, June 13, 2011 2:49 PM
To: 'Xerte discussion list'
Subject: [Xerte] xerte 2 desktop: SendandLoad

myData.sendAndLoad("email_test.asp", myData, "POST")

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?).

Thanks
RonM2

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.

_______________________________________________ Xerte mailing list Xerte at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110614/ecdb4330/attachment.html>


More information about the Xerte mailing list