index | search | no replies | posting guidelines | help login | register
Index » General » Site & Forum Feedback
search this forum:
:: URL openend in right frame after clicking treeview :: (2)Post a New Message | Post a Reply
Jan 13 2006, 4:27 AM
 URL openend in right frame after clicking treeviewPost a Reply
 skippy

View this author's profile Send this author a private message

since: Jan 13, 2006
from: Venlo

Hello friends

I have a question regarding the treeview:

I use the demoDB loading categories and subs from a database.

Q1: when i click on the folder i want the url to be openend in the frame on the right side, not in the frame where the treeview is.?

Q2: I want to use different icons, so for each categorie i want to use a different .gif. Is there a way to do this?

Hope that someone can help me with this.

Kind regards

Skippy

Jan 13 2006, 5:48 AM
 Re: URL openend in right frame after clicking t...Post a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

You can control the target page by adding a target property to your node.
e.g. in the LoadFromDB routine, you can set the target everytime you create the child node as follows:

Public Sub LoadFromDB(strConn,strMenuTable)
    ...

    If Not RS.EOF Then
        Do While Not
RS.EOF
                parentid=RS("ParentID")
                
                Dim child                
                Set child = New Node
                Call child.Init(RS("Text"),RS("URL"),RS("ToolTip"))
                child.ID = RS("MenuID")

               'Add the following line
                child.Target = "right" 'or your target page name

                ...
            Loop
    End If


    ...
End Sub



-------------------------
Ghost
Pages: (1)   [1]

search this forum: