PDA

View Full Version : TreePanel not reading webservice data



Nageswara_Jonnakuti
17 Dec 2010, 10:11 PM
Please see code pasted below

Ext.onReady(function(){

var tree = new Ext.tree.TreePanel({
renderTo:'tree-div',
title: 'Device Details Tree',
height: 500,
width: 450,
useArrows:true,
autoScroll:true,
animate:true,
enableDD:true,
containerScroll: true,
rootVisible: false,
frame: true,
root: {
nodeType: 'async'
},

// auto create TreeLoader
dataUrl: 'http://localhost:8080/DeviceResteasyWeb/restful-services/message',

listeners: {
'checkchange': function(node, checked){
if(checked){
node.getUI().addClass('complete');
}else{
node.getUI().removeClass('complete');
}
}
},


// whenever i give the path of the dataUrl:localpath of json data , it is giving the output properly
// but it is not working if i use webservice data
// i have tested webservice, it is working fine.

// I'm not getting any error also