Board: Trees for Melati

Subject

RE: Requirements

Author

Myles Chippendale

Status

Date

22/06/2000 16:08

Message

[snip]
>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?
Dynamic loading of branches wouldn't be too difficult. You can make documents
consisting of things like:
<html>
<javascript>
add_node(10, "New node", "http://where.ever.com/do/something?node=10");
add_node(11, "Another new node", "http://where.ever.com/do/something?node=11");
</javascript>
</html>
By loading this into a hidden <div> you can get the server to decide
what functions (already defined in your page) should get called,
for instance transferring data to the client. This is the trick we
use for the validation stuff, except it's all done in one page load.
We should combine this with some sort of MelatiTree/MelatiTreeNode
interface/class which we can load with the appropriate data on the
server side.
>Could data about these relationships be downloaded once, stored and
>then referenced and updated (where changes have been made) on the
>client side?
I assume the idea is that you do this once per session.
If so, yes, but we would have to store it somewhere "permanently"
(for the duration of the visit to the admin system), i.e. in a
persistent frame (such as the top-most nav frame).
>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.
This is obviously at odds with the first idea. We could make a system
which is a combination of both (e.g. load the top n levels such that
we only load about 500 nodes, and then load subsequent branches/levels
lazily).
>I am unfamiliar with 'lazy transfer of data' - can someone fill me in?
See above - you only load the data when it is needed.
> >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.
Yes.
>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.
Yes. This is especially true with any pure (non-DHTML) javascript
implementation (the whole page is actually re-written). With DHTML
things are slighly better 'cos you only re-draw a div, but you can't
let the browser take the strain - you have to work out heights and
widths and positions of elements and loads of other tosh (horrible,
really).
>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.
There are other reasons too. We would have to load it into a separate
window/frame.
>ColinR
>
>To unsubscribe yourself from the Trees for Melati Messageboard:
>http://www.paneris.org/webmacro/Subscribe?subscribe=false&db=paneris&board=275&message=unsubscribe
Myles

Trees for Melati Board

 

Post Follow-up

Search This Board

 

Message Context:

Requirements David Warnock 17/06/2000 16:37

    Re: Requirements (advice on running PanEris projects) ColinR (CVS User) 19/06/2000 09:50

        RE: Requirements (advice on running PanEris projects) David Warnock 19/06/2000 10:07

        RE: Requirements (advice on running PanEris projects) David Warnock 21/06/2000 11:06

            RE: Requirements ColinR (CVS User) 22/06/2000 15:36

                RE: Requirements Myles Chippendale 22/06/2000 16:08

                    RE: Requirements David Warnock 22/06/2000 16:56

                    RE: Requirements ColinR (CVS User) 22/06/2000 17:49

                        RE: Requirements Myles Chippendale 22/06/2000 19:16

                            RE: Requirements ColinR (CVS User) 23/06/2000 11:27

                RE: Requirements David Warnock 22/06/2000 16:56



Home -  News -  Reference Sites -  Members -  Partners -  Guidelines -  Philosophy -  Your Details -  Logout