PDA

View Full Version : return value from server to cliet


mrpanda
02-13-2009, 03:14 AM
server code:
Client.prototype.updatePlaylist = function(){

var list_xml = new XML();

list_xml.onLoad = function(success){
if(success){
//return list_xml;
}
};
list_xml.load("http://localhost:8088/html/xml/dir_list.php");*/
//return list_xml;
}
client code:
nc.call("updatePlaylist", ro);
how to return list_xml from server to client???

fnkmedia
02-24-2009, 11:54 PM
if (success){
// code here for your xml object
// client.call ("someMethodThatExistsInClienSide",null ,xmlObject)
}

mrpanda
03-02-2009, 02:32 AM
thanks for help!

mrpanda
03-10-2009, 08:26 AM
use this method i can response string but can't response xml.