  | | | Problem With XML Displaying In a TextBox | Problem With XML Displaying In a TextBox 2004-02-24 - By Bevan Christians
Back Hi
This is the Data Contained in the XML Stream (AMFPHP/Flash Remoting) is returning to me. /============================================================================== =============== Start <RESULTSET> <FIELDS> <FIELD type="int" max_length="1" table="posts" not_null="1" numeric="1" unsigned="0" zerofill="0" primary_key="1" multiple_key="0" unique_key="0"> <NAME>id</NAME> </FIELD> <FIELD type="string" max_length="16" table="posts" not_null="1" numeric="0" unsigned="0" zerofill="0" primary_key="0" multiple_key="0" unique_key="0"> <NAME>name</NAME> </FIELD> </FIELDS> <ROWS> <ROW> <VALUE>1</VALUE> <VALUE>Bevan Christians</VALUE> </ROW> </ROWS> </RESULTSET>? =============================================================================== =========== End =========/ This is my function handler for the service->function I am using
// getPosts handler for defSVC.getPosts() coming in from flash remoting function getPosts_Result(result) { var PostsXML:XML = new XML(result); var howmuch = PostsXML.getBytesLoaded(); var total = PostsXML.getBytesTotal(); trace("XMLobj: "+PostsXML); var rootNode:XMLNode = PostsXML.firstChild; for(i:Number = 0; i < rootNode.childNodes.length; i++) { txt.text += rootNode.childNodes[i].firstChild; } }?
PROBLEM:: In my TextBox Displaying the Data, this is what gets returned:
<FIELD type="int" max_length="1" table="posts" not_null="1" numeric="1" unsigned="0" zerofill="0" primary_key="1" multiple_key="0" unique_key="0"> <NAME>id</NAME> </FIELD> <ROW> <VALUE>1</VALUE> <VALUE>Bevan Christians</VALUE> </ROW>
This Row : <FIELD type="string" max_length="16" table="posts" not_null="1" numeric="0" unsigned="0" zerofill="0" primary_key="0" multiple_key="0" unique_key="0"> <NAME>name</NAME> </FIELD>
Seems to have been omitted
Can Anyone Tell me Why??
Thanking you all in advance
Bevan Christians bevan@(protected)
?
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|
 |