Ok, sorry about that - to quick on the send. Here is the last example:
If you need to need to see what is inside an object (say a cfinput
type=text) you can do:
<cfformitem type="script">
function dumpObject( object:Object ):Void {
var objectKeyValues = "";
for(var i in object ) {
objectKeyValues += i.toString() + " = " + object[i] + "\n\n";
}
// Show Alert Message
var alertSettings:Object = {
title: 'Debugging Information',
message: objectKeyValues,
width: 375,
maxWidth: 375,
height: 325,
maxHeight: 375,
headerHeight: 27
}
errorpopup = mx.managers.PopUpManager.createPopUp(this,
FormErrorException, true, alertSettings);
errorpopup.centerPopUp(this);
}
</cfformitem>
<cfinput name="FirstName" type="text"/>
<cfinput name="MyButton" type="button" value="Dump Object"
onclick="dumpObject(FirstName);"/>
This should dump all of the fields inside the FirstName object (which I
believe is a mx.controls.TextInput object). From there you could dump all
fields from the FirstName.text object or anything else you see. By the way,
any field with an underscore as the first character is ment to be private
data (hidden if you will). There are many fun things you can do with this
stuff but be careful because consistent results are not guaranteed.
Hope this gets you going.
Rob
[EMAIL PROTECTED]
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/