Question
XML via sendAndLoad to and from coldfusion server
Hello,
I'm working on this test that calls a coldfusion file server and
delivers a login data.
Then the server validates the information provided and if true returns a
xml data.
My problem is when using the sendAndLoad vars, on the onLoad I receive a
xml damaged? or String?.
Something like a query string result, text like "<" and ' " ' are
converted to html text "<" and """.
This is my code:
//
///////////////////////////////////////////////////////////////////////////////////////////////
// LOAD XML
var loadFromServer:XML = new XML ();
loadFromServer.ignoreWhite = true;
//
///////////////////////////////////////////////////////////////////////////////////////////////
loadFromServer.onLoad = function (success:Boolean) {
if (success) {
trace(this)
// traces this:
//<?xml version="1.0"
encoding="iso-8859-1"?>
// insted of this:
// <?xml version="1.0" encoding="iso-8859-1"?>
} else {
trace("error")
}
};
//
///////////////////////////////////////////////////////////////////////////////////////////////
// SEND
var sendToServer:LoadVars = new LoadVars ();
sendToServer.USER_ID = username;
sendToServer.USER_PASSWORD = userpassword;
sendToServer.sendAndLoad (" http://domain/login.cfm", loadFromServer,
"POST");
Is this a problem from:
Flash?
SendAndLoad with "POST"?
Server side?
Could some one help me please?
Thanks