Interesting thread now!
fereko - do you load data from another page using $.get() ? That sounds quite interesting...
My immediate requirement is way more simple!! I have a hierarchy of sites in the form Root >> Programme >> Project. From this hierarchy, I want to get a list of projects & programmes (e.g. in a cascaded drop-down list).
Given that the projects can be created by end-users, I don't really want to have to ask them to also add an entry into a List for the project they have just created. However, projects are not so dynamic that I need to query across the hierarchy every time!
I've thought about a few solutions, some more "hacky" than others...
- do the whole AJAX recursive calls to get the list at runtime (might be a bit slow)
- store the project / programme info in another list (additional effort by end users)
- run a batch process (e.g. hourly) that populates this list (item 2) by recursing through (but not hooked into a "new site" event)
Right now I have gone with option 2 as it was the simplest and doesn't stop me from doing something different later...