How to create Treeview for cross browsers ( mozilla etc.)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sermet

    #1

    How to create Treeview for cross browsers ( mozilla etc.)

    Hi everybody,
    I have an application that works for IE. I used treeview.htc to create
    a tree view. And I want my client side code to work with linux based
    operating systems. So the code should work on firefox or other gecko
    browsers. Sample code for IE is like the following:

    <HTML XMLNS:mytree >
    <HEAD><?IMPOR T NAMESPACE="mytr ee" IMPLEMENTATION= "./treeview.htc"/>
    <TITLE>Somethin g</TITLE>
    </HEAD>
    <BODY>
    <mytree:treevie w id="gTree" style="FONT-SIZE: 8pt; LEFT: 1px;
    OVERFLOW: scroll; COLOR: fuchsia; BACKGROUND-REPEAT: repeat; FONT-
    FAMILY: Verdana; TOP: 5px; HEIGHT: 100%;WIDTH: 100%"
    onselectedindex change="tvChang e('T')" onexpand="tvExp and()"
    DEFAULTSTYLE="c olor:black;font-size:8pt;font-family:Verdana"
    border="1" NAME="UNIQTree" oncontextmenu=" contextMenuCrea te();return
    false;"></mytree:treeview >
    </BODY>
    </HTML>

    Populating the tree is being done by methods at treeview.htc with
    using jscript like:
    function addDummyChild(p arentNode)
    {
    var newNode = gTree.createTre eNode();
    newNode.setAttr ibute("text", "DUMMY CHILD");
    parentNode.add( newNode);
    }

    I have an entire application which uses treeview.htc methods. So I
    want it run on other browsers with changing the code as little as
    possible.

    Many thanks for any reply...
  • sermet

    #2
    Re: How to create Treeview for cross browsers ( mozilla etc.)

    On 30 Nisan, 14:32, sermet <superser...@gm ail.comwrote:
    Hi everybody,
    I have an application that works for IE. I used treeview.htc to create
    a tree view. And I want my client side code to work with linux based
    operating systems. So the code should work on firefox or other gecko
    browsers. Sample code for IE is like the following:
    >
    <HTML XMLNS:mytree >
    <HEAD><?IMPOR T NAMESPACE="mytr ee" IMPLEMENTATION= "./treeview.htc"/>
    <TITLE>Somethin g</TITLE>
    </HEAD>
    <BODY>
    <mytree:treevie w id="gTree" style="FONT-SIZE: 8pt; LEFT: 1px;
    OVERFLOW: scroll; COLOR: fuchsia; BACKGROUND-REPEAT: repeat; FONT-
    FAMILY: Verdana; TOP: 5px; HEIGHT: 100%;WIDTH: 100%"
    onselectedindex change="tvChang e('T')" onexpand="tvExp and()"
    DEFAULTSTYLE="c olor:black;font-size:8pt;font-family:Verdana"
            border="1" NAME="UNIQTree" oncontextmenu=" contextMenuCrea te();return
    false;"></mytree:treeview >
    </BODY>
    </HTML>
    >
    Populating the tree is being done by methods at treeview.htc with
    using jscript like:
    function addDummyChild(p arentNode)
    {
            var newNode = gTree.createTre eNode();
            newNode.setAttr ibute("text", "DUMMY CHILD");
            parentNode.add( newNode);
    >
    }
    >
    I have an entire application which uses treeview.htc methods. So I
    want it run on other browsers with changing the code as little as
    possible.
    >
    Many thanks for any reply...
    Internet is full of priced implementaition s but there's not any
    example that implements methods which are implemented by treeview.htc.

    Any suggestions will be regarded...

    Comment

    Working...