[Xerte] Re: What part of the object am I looking at?

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Aug 17 13:26:03 BST 2011


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());


false

Help: "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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110817/a2a8cabb/attachment.html>


More information about the Xerte mailing list