Results 1 to 3 of 3

Thread: Tree with checkboxes

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tree with checkboxes

    Hai dear all , I am azahrudhin, working in bahrain, I have a java script array using that i should generate the treeview with the checkboxes similer to norton or mycomputer will allow us to check or uncheck the tree and collapse
    Using javascript

    treeList[0] = new Array();
    treeList[0][5 = new Array();

    treeList[0][0] = "999"//OrganizationId
    treeList[0][1] = "Asia"//OrganizationName
    treeList[0][2] = "1"//NodeId
    treeList[0][3 = "999"//Parent
    treeList[0][4]= "999"//treeStructure

    treeList[0][0] = "105"//OrganizationId
    treeList[0][1] = "China"//OrganizationName
    treeList[0][2] = "0"//NodeId
    treeList[0][3 = "999"//Parent
    treeList[0][4]= "999\105"//treeStructure

    treeList[0][0] = "100"//OrganizationId
    treeList[0][1] = "Bruni"//OrganizationName
    treeList[0][2] = "1"//NodeId
    treeList[0][3 = "999"//Parent
    treeList[0][4]= "999\100"//treeStructure

    generate the tree with this array if i pass this array to javascript function it should give me a tree

  2. #2
    Join Date
    Apr 2006
    Posts
    205
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Hi azahrudhin,

    I just read your post. I don't understand what your question is, or what problem you are having.

    No one else has replied to the post. You may like to try to define your problem more clearly.

    Another thing. It seems your thread is more Javascript related than HTML. There is a Javascript forum that may be you should be aware of.

    Peace,
    dog

  3. #3
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    the only thing I notice is missing brackets:

    Code:
    treeList[0] = new Array();
    treeList[0][5] = new Array();
    
    treeList[0][0] = "999"//OrganizationId
    treeList[0][1] = "Asia"//OrganizationName
    treeList[0][2] = "1"//NodeId
    treeList[0][3] = "999"//Parent
    treeList[0][4]= "999"//treeStructure
    
    treeList[0][0] = "105"//OrganizationId
    treeList[0][1] = "China"//OrganizationName
    treeList[0][2] = "0"//NodeId
    treeList[0][3] = "999"//Parent
    treeList[0][4]= "999\105"//treeStructure
    
    treeList[0][0] = "100"//OrganizationId
    treeList[0][1] = "Bruni"//OrganizationName
    treeList[0][2] = "1"//NodeId
    treeList[0][3] = "999"//Parent
    treeList[0][4]= "999\100"//treeStructure
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

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
  •