Click to See Complete Forum and Search --> : load the node's data at runtime?


megaxoom
August 23rd, 2004, 12:42 PM
Hi everyone

I am planning to write a sort of tree explorer. What it does is described at below:
Because the data is huge, I don't want to load it all at once. I plan to write at least 50 nodes or more, and when a user clicks or expands on a node, the data under this node will be loaded. Also note that when the data under a particular node already loaded, and the user clicks on it again, the data needs not to be reloaded again. So my question is how do we do this. Is there any related source code that leads to this? Thanks for any help.

MRutledge
August 24th, 2004, 11:45 AM
You might want to consider loading it all at once. Other wise you will be making a lot of costly calls back to the server when someone clicks on something. Another option would be to use Client Callbacks. This essentially means that when someone clicks on something in your page you open an out-of-bound call / xml port and then get the data and then update the view with client side code.