473,770 Members | 5,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...
Jun 27 '08 #1
1 1660
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...
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3325
by: Ed | last post by:
http://aspfaq.com/show.asp?id=2311 Sample: http://aspfaq.com/treeview This works perfectly on Windows IE 6.x and Mac IE. However, in order to be cross-platform compatible, I need to make this work on Mac Safari and Mozilla Firefox. Could someone point out how to fix this code to make it compatible with those aforementioned browsers?
4
5479
by: Simba | last post by:
In some pages of my website I use a code like the following: for (var n = 0; n < getTagsArray("SPAN").length; n++){ //SPAN is just an example. I also use other tags tag = getTagsArray("SPAN"); //make something with tag... }
3
1396
by: Matthew | last post by:
Hello - I have this DHTML calendar that displays about 10 pixels off its target in Netscape 7.0 -- from the script layer I have the block of code identified that positions the calender on the screen. I was thinking if I could write a wrapper around this that would execute two different versions depending on which browser is coming in... for now I am only interested in all versions of IE and NS 7.0 (haven't tested it on earlier versions of...
16
2874
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
4
7707
by: J Fisk | last post by:
Hi, I've been banging my head on the wall over this for about two days now so any thoughts are much appreciated. I have a static .svg file with embedded onclick="open()"'s all over. The svg is <embed>ded in a minimal .html file. The onclick's work fine in IE w/Adobe SVG viewer 3: click and a new
0
977
by: Alex D. | last post by:
hi. my treeview is not working ok with firefox-mozilla browsers, problem is that when I expand or collapse the nodes the + and - dont switch, though the node expands and collapses OK. I delete all the nodes and re-populate my tree dynamically in each roundtrip to the server. In IE it works just fine... Any idea would be appreciated. alex.
1
3154
by: Dan | last post by:
Hi, I was wondering if anyone could come up with a cross browser image transition that I could use... I have already made one that works in IE but i know it doesn't work in Mozilla Firefox. Below is the script I have made, there is only one error with it (besides compatabilty), the fact that you can make the images transition even when there is already a transition occuring, I have tried to compensate for this, but it doesn't work......
15
2330
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8891
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.