Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

How to use TreeMap, TreeSet, etc?

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

Thanks,
mark


 
Reply With Quote
 
 
 
 
Grant Wagner
Guest
Posts: n/a
 
      07-16-2003
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
sorted?

--
| Grant Wagner <(E-Mail Removed)>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html


 
Reply With Quote
 
 
 
Reply

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? kulkarku@math.net 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. please.post@yur.re.ply Firefox 1 07-04-2004 03:41 AM



Advertisments