[Xerte] Re: What part of the object am I looking at?
Dave Burnett
d_b_burnett at hotmail.com
Wed Aug 17 17:29:26 BST 2011
The thing I'm curious about is the additional properties in the return.
I thought the only thing in the someIcon.loadVars would be what was returned by the call to the server.
e.g.
Value_a TEXT Value_B TEXT Value_c TEXT
where is the rest coming from?
=&onLoad=[type Function]&icon=_level0.engine.IFC.FW_ENT
I really just need to know where I truncate that string so as to just extract the return string.
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 17 Aug 2011 13:40:35 +0100
Subject: [Xerte] Re: What part of the object am I looking at?
Sorry. Duh, RootIcon == ifc. rootIcon.loadVars is the same thing as rootIcon.loadVars. Must have had too much holiday. From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 17 August 2011 13:38
To: Xerte list
Subject: [Xerte] Re: What part of the object am I looking at? odd.
debug(rootIcon.ifc.loadVars);
undefined
debug(ifc.loadVars);
Value%5Fa%20TEXT%09Value%5FB%20TEXT%09Value%5Fc%20TEXT%0D%0A=&onLoad=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC%2EFW%5FENT
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 17 Aug 2011 13:26:03 +0100
Subject: [Xerte] Re: What part of the object am I looking at?Here’s the function in the engine: ICON.prototype.sendAndLoadVars = function(url, loadVarsObj){ this.loadVars = new LoadVars(); this.loadVars.icon = this; loadVarsObj.sendAndLoad(url, this.loadVars, "POST"); this.loadVars.onLoad = function(success){ this.icon.broadcast('onSendAndLoadVars') }} So try decode() on rootIcon.ifc.loadVars? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 17 August 2011 13:23
To: Xerte list
Subject: [Xerte] Re: What part of the object am I looking at?
debug(ifc.loadVars.decode());
falseHelp: "Sets the object iconID.loadVars with the resulting loadVars properties."
Should the returned data have it own prop?
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 17 Aug 2011 13:15:19 +0100
Subject: [Xerte] Re: What part of the object am I looking at?myLV.decode(); ?? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 17 August 2011 11:40
To: Xerte list
Subject: [Xerte] What part of the object am I looking at?
vars = new LoadVars ();
vars.CCID = 200;
ifc.sendAndLoadVars('http://www.myserver.com/daveRead.asp', vars);
returns a tab delimited string.
inspect(ifc.loadVars); //returns below
===============
Value_a TEXT Value_B TEXT Value_c TEXT
:
onLoad : [type Function]
icon : _level0.engine.IFC.FW_ENT
===============
debug(ifc.loadVars); //returns below
==================
Value%5Fa%20TEXT%09Value%5FB%20TEXT%09Value%5Fc%20TEXT%0D%0A=&onLoad=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC%2EFW%5FENT
===================
How do I get at just my returned data?
It doesn't seem to have a property.
Dave
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/20110817/a71615b8/attachment-0001.html>
More information about the Xerte
mailing list