Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to use TreeMap, TreeSet, etc?

Thread Tools

How to use TreeMap, TreeSet, etc?

Mark Wayne
Posts: n/a
Is is possible to use TreeMap in the javascript <SCRIPT> portion of HTML? If
so, how?


Reply With Quote
Grant Wagner
Posts: n/a
Mark Wayne wrote:

> Is is possible to use TreeMap in the javascript <SCRIPT> portion of HTML? If
> so, how?
> Thanks,
> mark

The only way to use a TreeMap object would be to have a Java Applet in your page
and use LiveConnect to transfer data between JavaScript and the Java Applet. It
would be slow, inefficient and would probably fail in far more browsers then
just using JavaScript by itself.

That said, why do you need to use a TreeMap in JavaScript? JavaScript has
associative arrays, and all the functionality of a Java TreeMap could be
accomplished in JavaScript if you so desired, although I doubt you'd use all the
functionality available.

What problem are you trying to solve? Do you really require the keys to be

| Grant Wagner <(E-Mail Removed)>

* Client-side Javascript and Netscape 4 DOM Reference available at:

* Internet Explorer DOM Reference available at:

* Netscape 6/7 DOM Reference available at:
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Could not use ''; file already in use. M K ASP .Net 11 04-09-2008 11:35 AM
where to use CPLD & where to use FPGA? VHDL 6 03-06-2006 07:27 AM
Can I use XPath or something to a remote Mac or Linux box and just query an xml file, not using web services and use encyrption? jake ASP .Net 0 07-06-2004 02:16 PM
Cannot use the profile "default" because it is in use, not. Firefox 1 07-04-2004 03:41 AM