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 <gw*****@agricoreunited.com>
* 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