/    Sign up×
Community /Pin to ProfileBookmark

A stupid Netscape question…

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??

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Mar 07.2003 — 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
Copy linkTweet thisAlerts:
@AdamBrillauthorMar 08.2003 — 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 ?
Copy linkTweet thisAlerts:
@AdamBrillauthorMar 08.2003 — oops... I forgot to put the attachment up there... :o I guess that would help... ?

[upl-file uuid=f33cb8bf-897f-46ba-a4fd-abfa84c217aa size=3kB]problem.zip[/upl-file]
Copy linkTweet thisAlerts:
@khalidali63Mar 08.2003 — Lets see what "Package" you were talking about..:-)

Khalid
Copy linkTweet thisAlerts:
@khalidali63Mar 08.2003 — 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
Copy linkTweet thisAlerts:
@AdamBrillauthorMar 08.2003 — [i]Originally posted by khalidali63 [/i]

[B]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.[/B][/QUOTE]
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. ? Just out of curiosity, how do you know it is a reserved keyword? Oh, and thanks for solving this annoyance for me... ?
Copy linkTweet thisAlerts:
@khalidali63Mar 08.2003 — 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
Copy linkTweet thisAlerts:
@AdamBrillauthorMar 08.2003 — 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. ?
Copy linkTweet thisAlerts:
@khalidali63Mar 08.2003 — Welcome,

Though I do not agree with it,JavaScript is set to be very powerfull web development language,very soon..

Cheers

Khalid
Copy linkTweet thisAlerts:
@AdamBrillauthorMar 08.2003 — 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. ?
×

Success!

Help @AdamBrill spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...