SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    BOSTON
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation hmmm.... client side move command in tree

    alrighty then,
    time for a real dinger!
    i have taken the javascript mmartin tree and over loaded the context menu to display my own list of commands, which differ depending on whether the pointer is over a document or a folder, slick eh!
    yeah... right....
    but!
    of those commands there exists
    create
    delete
    edit
    lock
    release
    move
    (lock and release b/c the tree is indirectly connected to an excelon (xml) db that generates the files (its gonna be a biggy)
    but the problem is move:
    to actually "move" the chapter in the database, i need to develop some sort of menu for indicating the new order, or some way it can be done visually, but at the same time still invoke a soap rpc to make the excelon database reflect the event
    now... more than likely it is just going to be easier to invoke a call that changes the order of the database, but i still need some way (client-side!!!)
    the changing of the database doesn't matter
    i can figure that out...
    but the menu to alter the chapter order must be intrinsic and visually client side (meaning no server regeneration until order is set)

    so...
    select the "move" option in my context box, then
    redisplay order of folder in a separate box, and (if ya know how to drag and drop, do tell!)
    but either way the entries correspond to an array
    (each folder is an array of chapter documents)
    need ideas to ting my brain with

    any input is greatly appreciated! thanks!
    PEACE

  2. #2
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not make the client-side part almost completely independent of the database, only rendering the changes to the DB at the end.

    Use this approach
    DB -> XML -> Tree -> Changes -> Tree -> XML -> DB

    Very good article(s) here (which you should be able to adapt pretty easily):

    http://www.15seconds.com/issue/010921.htm
    http://www.15seconds.com/issue/010927.htm
    http://www.15seconds.com/issue/011113.htm
    http://www.15seconds.com/issue/011129.htm


    M@rco

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    BOSTON
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up EXCELLENT

    just got back from partying in montreal!!!
    now,... it is sunday night and tomorrow is work, so
    back to business

    WOW
    those links are very good articles on client side tree display
    thanks a bunch!
    this is my first visit to 15seconds.com
    do you use it often or contribute to any of the articles?
    thanks again
    time for some code
    PEACE

  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I visit it fairly often (I use SpyOnIt to let me know when it has been updated). I am not currently a contributor (although I have corresponded with authors in the past), but I am working on an article that I will submit for publishing at either 15Seconds or 4GuysFromRolla (haven't decided).


    M@rco


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •