[Kss-devel] Large response goes missing

Hedley Roos hedley at upfrontsystems.co.za
Wed Sep 5 10:12:29 CEST 2007


> 
> However what I would like to know, is _why_ you need to generate such a 
> big html? It seems to be the wrong pattern and against the point of ajax, 
> it is better to send to the page the html that is visible at that moment.
> 

It IS the wrong pattern. My app has a template which displays a large 
object tree with expandable / collapsable nodes for navigation. It also 
provides inline editing.

The problem arises when I expand a large subtree. I have changes my 
pattern. What I do now is to create the first 10 elements of the tree 
the KSS way, and then create "slots" for the remaining batches of 
elements. These slots are each filled with a simpler ajax call (ie not 
azax involved for them).

FYI I use it in a product called PloneWurfl which is soon to be 
released. I'll send a link to the source so you can see how I manage the 
tree. Maybe you already have a better way of doing it.


More information about the Kss-devel mailing list