PDA

View Full Version : how to receive the responsestream data if the xmlStore failed to load the remote xml



linuxyf
15 Nov 2010, 1:45 AM
client:
var store_datasource = new Ext.data.XmlStore({
url: "http://localhost:8888/testServlet",
autoDestroy: true,
storeId: 'datasourceStore',
record: 'Data',
idPath: 'ID',
fields: ['ID', 'DATASOURCE_NAME', 'DATASOURCE_NAME_ALIAS']
});

store_datasource.load({callback:function(rec, opt, success){
//
}});

if i failed to load remote xml from ResponseStream returned by a servlet, how can i receive the error message written in ResponseStream??