Message |
Dave/All, >I have now setup the tasks. I would be interested in your comments about the >project requirements. Firstly, I strongly agree with the following point. >a solution that is IE or Netscape specific is not >acceptable. At a minimum clients running on Windows 9x/NT, Linux and Macintosh must be supported. I have been looking at open source DHTML tree navigation scripts as a starting point. These display a navigational tree structure similar to the old Window$ File Manager. A good example is available at: http://javascript.internet.com/foldertree/foldertree.zip I am assuming from your design brief and previous emails that this is something like what you envisage/require the user to be presented with. My primary concern is performance. In the DHTML solutions I have seen, the entire tree is downloaded prior to the structure being presented for navigation. This would mean that to load this frame the user would be required to download a DHTML file containing every record/category permeation in the database regardless of their requirements. Does anyone have any idea about how this can be avoided within this scenario? Could data about these relationships be downloaded once, stored and then referenced and updated (where changes have been made) on the client side? It may be possible to request the contents of each level in the tree as it is opened. However, this goes against point one of your performance requirement: >Performance is important, we do not believe that it will be acceptable to >make separate server connections each time a branch is expanded / closed although it would be possible to consider lazy transfer of data. I am unfamiliar with 'lazy transfer of data' - can someone fill me in? >Once the page is downloaded we expect sub 1 second responses on a >standard 300mhz Pentium running Windows 98. If all the data is downloaded in one go into the tree then things obviously get quicker because everything is happening on the client side. However, sub 1 second responses cannot be guaranteed using the DHTML method as opening trees gets progressively slower the more items you put inside them due to increased rendering requirements. When each branch is opened the entire page is re-rendered. The more trees you have open and the longer the trees are, the more time the page takes to render. Likewise if the tree structure is to be presented within data entry forms, this will really slow things down and will reset any changes made in the form when the tree is re-rendered. Trees would definately need to be presented in a separate window or frame if DHTML is to be used to present trees in this way. ColinR
|