Dictionary Class

Added By: alekz

(4 of 5) by 5.
Rate Snippet:
Description:  Similar to ASP "Scripting.Dictionary" Object, or an associative array with somewhat limited functionality. There's a few differences: - "item" property is replaced by two methods getVal and setVal. - "key" property is replaced by the setKey method. As the value of an item can be virtually anything, even another Dictionary object, the Dictionary Class might be usefull. If someone have a suggestion or wants the Dictionary class to be extended some way, feel free to drop me an e-mail. Tested with: IE4; IE5; IE5.5; IE6; NS4.78; NS6.0; NS6.1; NS6.2; NS7.0; Mozilla 1.0; Mozilla 1.1; Opera 6.0
Language:  JavaScript

Save to web space
E-mail Link

Code Snippet: