PDA

View Full Version : Examples does not working on server!



aborjinos
11 Sep 2008, 11:21 AM
Hi everybody,

I download http://extjs.com/products/extjs/download.php?dl=extjs22 examples and put them to server but some of the examples are not working on the internet(my server)
For example http://extjs.com/deploy/dev/examples/form/xml-form.html :
this works perfectly on extjs.com but in my server when I click load nothing is loaded.
Or http://extjs.com/deploy/dev/examples/layout-browser/layout-browser.html : I can not see the trees nodes but it works correctly on extjs

I need these examples they are only Json data but they are not working and I can not do anything. Am I need some server configuration so what I can do?

Thanks and good night...

devnull
11 Sep 2008, 11:31 AM
A little bit of debugging might be appropriate. Try to figure out what portion of it isnt working right and provide us with those details if you still cant figure it out.

aborjinos
11 Sep 2008, 11:58 AM
thanks for your reply,

when I want to use Json data form the url it does not work. For example, I can not see tree nodes(also no errors occur) when I want to use http://extjs.com/deploy/dev/examples/layout-browser/layout-browser.html example with code below



loader: new Ext.tree.TreeLoader({
dataUrl:'tree-data.json'
}),


can i embed my json data(it is also static data) into TreePanel without using url

[{
text:'User Management',
expanded: true,
children:[{
text:'Add New User',
id:'user_add',
leaf:true
},{
text:'Search Users',
id:'user_search',
leaf:true
},{
text:'List Users',
id:'user_list',
leaf:true
}]
}]

thanks again...