Symbi0nt
5 Apr 2007, 6:21 AM
Hi there,
I am a little bit confused about the Tree widget.
I try to use the YUI-EXT Framework in combination with CakePHP (just some php-framework) and there are controller all over the place. So I set one up to give me the JSON Stuff back.
I *think* the very basic tree has just "text" and "id" stuff attached in a JSON array. But everything I tried does not show up.
I went back to the example and moved the 'get-nodes.php' file in a subdir to check if it can still load the data -> and it failed. Also with an absolute 'http://192.168.0.1/get-nodes.php' as the dataUri parameter does not work.
After giving google a try nearly 95% of all examples in the net have a just a simple filename there. My experices with Ajax.request from Prototype tells me that I usually can request any url with ajax. Are there any restrictions why I cant use a subdir or something?
I guess even an clean EXT application will get messy if every ajax call must be handled by a single file call (no subdir or so).
I am a little bit confused about the Tree widget.
I try to use the YUI-EXT Framework in combination with CakePHP (just some php-framework) and there are controller all over the place. So I set one up to give me the JSON Stuff back.
I *think* the very basic tree has just "text" and "id" stuff attached in a JSON array. But everything I tried does not show up.
I went back to the example and moved the 'get-nodes.php' file in a subdir to check if it can still load the data -> and it failed. Also with an absolute 'http://192.168.0.1/get-nodes.php' as the dataUri parameter does not work.
After giving google a try nearly 95% of all examples in the net have a just a simple filename there. My experices with Ajax.request from Prototype tells me that I usually can request any url with ajax. Are there any restrictions why I cant use a subdir or something?
I guess even an clean EXT application will get messy if every ajax call must be handled by a single file call (no subdir or so).