thnks a lot!!!setconfig is working....but we need to retrieve the values of the tag in the vhost.xml file..say for example...we need to retrieve the value of mode tag initially as local or remote...and only after tht we need to change it if needed...so can you help with the code to retrieve tag values using getConfig() or getconfig2()?
Use exact same code which I had given before, just replace :
admin_nc.call("setConfig2",new Result1(),"Proxy/Mode","remote","Adaptor:_defaultRoot_/VHost:_defaultVHost_");
by
admin_nc.call("getConfig2",new Result1(),"Proxy/Mode","Adaptor:_defaultRoot_/VHost:_defaultVHost_");.
Redefine Result1() as:
function Result1() {
this.onResult = function(info) {
if (info.code == "NetConnection.Call.Success" ) {
for(i in info.data){
trace(info.data);
}
}
}
}