[Xerte] Re: Bouncing an asp page

Dave Burnett d_b_burnett at hotmail.com
Tue Jun 14 16:49:49 BST 2011



Isn't this sending an object?

sendVars = new LoadVars ();sendVars.action = 'getData';sendVars.sid = student.id; // send to dbmainMenu.sendAndLoadVars (URLString, sendVars); // mainMenu is the page ID

From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 14 Jun 2011 16:16:52 +0100
Subject: [Xerte] Re: Bouncing an asp page



It needs to be a string you send: send_email.sendAndLoadVars('http://www.blah.com/cj/mail.asp', ‘dummy=fred&var2=something&var3=somethingelse’); You can’t send an object. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 14 June 2011 16:10
To: Xerte discussion list
Subject: [Xerte] Re: Bouncing an asp page The event will still fire though, I think. Try it on a local test file: it should return the text contents of the file. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: 14 June 2011 16:08
To: Xerte discussion list
Subject: [Xerte] Re: Bouncing an asp page It’s probably not failing, just not returning anything so Xerte doesn’t have anything to do. If your asp script echoes back any values, they’ll be captured as an object: // send data to php scriptURLString = domain + '/wbt/app/admin/selfpaced_xerte_queries.php'; sendVars = new LoadVars ();sendVars.action = 'getData';sendVars.sid = student.id; // send to dbmainMenu.sendAndLoadVars (URLString, sendVars); // mainMenu is the page ID =================== Then use an event interaction with onSendAndLoadVars as the event. The returned values are assigned to an object named loadVars (I think ActionScript defaults to that name, I don’t know if you can change it). My script returns variables (using either echo or print) such as ‘message’ and ‘error_code’ and I access them like so: message = mainMenu.loadVars.message;errorCode = mainMenu.loadVars.error_code; Pretty simple once you get the hang of it. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Tuesday, June 14, 2011 7:40 AM
To: Xerte list
Subject: [Xerte] Re: Bouncing an asp page 
xmlData = new XML();
xmlData.dummy = '<myDummy/>';
send_email.sendAndLoad(xmlData, 'http://www.blah.com/cj/mail.asp');

//works


objData = new Object();
objData.dummy = 'fred';
send_email.sendAndLoadVars('http://www.blah.com/cj/mail.asp', objData);

//fails

Is this failing because at present the asp returns nothing?
a la Authorware? 

From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 14 Jun 2011 14:56:44 +0100
Subject: [Xerte] Re: Bouncing an asp pageOne way or another you will have to send text, so will have to get your data into xml or load vars, or send it as an xml payload, as text in a format of your choosing.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 14:55
To: Xerte list
Subject: [Xerte] Re: Bouncing an asp page 
But I want to send data, just not in xml.

blah = new object();
blah.one = 'fred';

etcFrom: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 14 Jun 2011 14:51:48 +0100
Subject: [Xerte] Re: Bouncing an asp pageSend a dummy. <myDummy/> 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 14:51
To: Xerte list
Subject: [Xerte] Re: Bouncing an asp page 
OK, but say I don't want to send XML.From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 14 Jun 2011 14:48:05 +0100
Subject: [Xerte] Re: Bouncing an asp pageYep. Then see if iconID.onSendAndLoad fires – test to a local html file or text file or xml file or… 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 14:47
To: Xerte list
Subject: [Xerte] Bouncing an asp page 
OK, just want to make sure I have this right:

sendAndLoad

iconID.sendAndLoad(xml, url);

Posts.
Wants the data in the form of an XML object, i.e. new XML()
Object first parameter.
=====================







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. 
_______________________________________________ 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. 
_______________________________________________ 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. 
_______________________________________________
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/aafcb359/attachment-0001.html>


More information about the Xerte mailing list