Click to See Complete Forum and Search --> : A stupid Netscape question...


AdamBrill
03-07-2003, 05:08 PM
In Netscape, is "package" a reserved word or something??? I have a site that uses javascript to generate a bunch of options and everything works fine, but if the array name is package, it terminates the whole script. Has anyone had a problem like that before?? I renamed the array to "pack" and it worked fine. It works fine both ways in Internet Explorer. What the heck is up with that?? I almost went crazy trying to figure out what was wrong... I never thought that renaming the array would help. Can anyone explain that to me?? or is it just a bug in Netscape or something??

khalidali63
03-07-2003, 05:41 PM
this is reaaaaaallly far fetched but package is the key word in Java,I'd seriously doubt that its implemented as a key word in JavaScript already,I heard about JavaScript 2 but not yet.

Khalid

AdamBrill
03-07-2003, 11:38 PM
I attached the code. There is one file named Works.htm... That one works fine. Then there is one named Doesn'tWork.htm... That one doesn't work. The only difference is changeing the array name(and all of the places that it is used). I almost shot my computer when I found out that that was what was wrong. :) I'm just lucky there wasn't a shotgun near by... LOL :D

AdamBrill
03-07-2003, 11:40 PM
oops... I forgot to put the attachment up there... :o I guess that would help... :D

khalidali63
03-07-2003, 11:42 PM
Lets see what "Package" you were talking about..:-)

Khalid

khalidali63
03-07-2003, 11:46 PM
Hollllly crap,it is reserved keyword..lol..too bad adam...you can not use it with NS,god,I knew it was going to be implemented but ,already?..did not know that.

Cheers

Khalid

AdamBrill
03-07-2003, 11:51 PM
Originally posted by khalidali63
Hollllly crap,it is reserved keyword..lol..too bad adam...you can not use it with NS,god,I knew it was going to be implemented but ,already?..did not know that.Are you serious??? I thought that I was joking about that... :) Stupid browser... Well, at least you kept me from pulling the gun on my computer. :D Just out of curiosity, how do you know it is a reserved keyword? Oh, and thanks for solving this annoyance for me... ;)

khalidali63
03-07-2003, 11:55 PM
package is the keyword in java language,that is used to state a package name that would keep the files for a project.,Since JavaScript 1.5 they have knitted Java very closely ( you can use Java classes,exception control try,catch blocks).

You may want to read about LiveConnect...from DevEdge website.

Khalid

AdamBrill
03-08-2003, 12:01 AM
Well.... I'll be darned. Thanks for the replies, Khalid. I thought that was just a bug in Netscape or something. :) Thanks for setting me straight. ;)

khalidali63
03-08-2003, 12:08 AM
Welcome,
Though I do not agree with it,JavaScript is set to be very powerfull web development language,very soon..

Cheers

Khalid

AdamBrill
03-08-2003, 12:16 AM
Yeah, well, they can't ever just leave well enough alone. I think it just makes them feel big to change everything on everybody. :) That's just my opinion, though. :D