Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HashTable usage

Status
Not open for further replies.

Tve

Programmer
Joined
May 22, 2000
Messages
166
Location
FR
Hi,

I'm trying to update an applet in HTML using javascript.

According to documentation, I can pass the parameters as a Hashtable object which doesn't seem a bad idea.

This may seem trivial, but I'm not really a javascript programmer, but more a perl/php guy. When I try to construct the object as specified in the documentation
( Hashtable numbers = new Hashtable(); ), I get an error from IE:

Expected ';'

I am guesting that I should import a module or something, but I cannot get this to work. I've searched on internet, but not really found something I can use.

Sorry to bother you with this simple question.

PS: this is a link to the applet doc:


AD AUGUSTA PER ANGUSTA

Thierry
 
There is no HashTable in JavaScript. They must be referring to Java.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
>> PS: this is a link to the applet doc:
>>
The first line of the doc clearly says:

"This java table"

Java and JavaScript are totally different beasts... If you're not aware of the difference, I'm surprised you're attempting to program in either of them ;o)

Dan
 
Dan,

I am aware that there are differences between the two.

Nevertheless, the applet does run in HTML and other all methods do work fine, except this HashTable thing.



AD AUGUSTA PER ANGUSTA

Thierry
 
Well, if you still want to use JavaScript, you could probably get away with using document.write() to add the parameter tags if you wanted to.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top