PDA

View Full Version : HttpProxy Load



jacksv123
5 May 2010, 3:21 AM
var httpProxy=new Ext.data.HttpProxy({
url:'http://localhost:8080/webqq/GroupServlet?uid=10001'
})

metedata={
length : "length",
user : "user",
uid : "uid",
fields :[
{name : 'uid',mapping:'uid'},
{name : 'status',mapping:'status'}
]
}
var xmlReader=new Ext.data.XmlReader(metedata);
//alert('1');
httpProxy.load(null,xmlReader,callBack);
function callBack(result){
var users=result.users;
var user=users[0];
alert(user.get('uid'));
}

it make an exception:Uncaught TypeError: Property 'load' of object [object Object] is not a function

would you explain it?Thank you !