Return to Snippet

Revision: 3063
at May 30, 2007 13:13 by tayles


Initial Code
var replyXML = new XML();
replyXML.onLoad = myOnLoad;
function myOnLoad(success)
{
if (success) {
trace(replyXML);
} else {
trace('fail');
}
}

var send_lv = new LoadVars();
send_lv.postVar = "foo";
send_lv.sendAndLoad("addressOfMyWebServiceOrOtherProgram", replyXML, "POST");

Initial URL


Initial Description
Concerning: LoadVars.sendAndLoad

You can send variable/value post information and receive xml information by using code like below.

It's a great way to work with web services and avoid using the modem-unfriendly web service connector component. can adobe confirm that this method of sending with loadVars and receiving xml will be supported in the future?

Initial Title
LoadVars.sendAndLoad w/ XML response

Initial Tags


Initial Language
ActionScript