Talk:JavaScript

From MozillaZine Knowledge Base
Jump to navigationJump to search

Spelling of JavaScript

Mozcerize, can we please avoid using "JavaScript" name? I know that's how it was originally called, but that adds to the Java vs. Javascript confusion, looks funny, and I was already using "Javascript" wherever possible, including a category name ;p --asqueella

Ah, OK, I'm not bothered either way. Feel free to change it. --Mozcerize
Changing a generally established name violates the principle of least surprize. Making it clear in the main article that JavaScript is not Java should be enough. —Fatalis 14:47, 25 Mar 2005 (PST)
Then go through all existing pages and change the capitalization. Using different names in different places is worse, whatever you call it. asqueella
I'll do it. —Fatalis
thanks --asqueella

Wording of article

I'm not a big fan of the rewording of this article: I think it is now harder for non-technical users to understand what JavaScript does. We should compromise somewhere between the under-technical and the over-technical. --Mozcerize 04:01, 29 Mar 2005 (PST)

I think that in this case less technical would also mean less accurate. If you want to make it perceptible for commoners, add a dumbed down rephrase. Note that I plan on expanding this article. —Fatalis
I would like to notice that we don't need an encyclopedic article here. Wikipedia's article is a great source for this kind information. This page should instead focus on what JavaScript means to end-users, for developers we can add a link to Development_resources#JavaScript.
For users simpler, not technically accurate description is better -- users don't care about ECMAScript or it being prototype-based, most probably don't even understand what it means. --asqueella

Including JavaScript is not Java article

We should *not* merge these two articles. See here for reasons why. --Mozcerize 04:01, 29 Mar 2005 (PST)

Javascript Buttons

I created a "?" button two different ways:

Button A: <button onClick="listPriceHelp()" style="background-color: red">?</button> Button B: <input type=button value=? style="background-color:red; color:white; font-weight:bold;" onClick="listPriceHelp()">


function listPriceHelp() {

 alert("If you can buy the product at a higher price\nsomewhere else enter that price here\nwill show this price with a line through it.\n\nLeave blank to display nothing.");

}


In IE it sends the Alert and you hit OK and it comes back with both Button A & Button B. In Firefox 1.0.2 it with Button B it works find. With Button A it pops up the Alert and then Submits my form. I have added a "return false;" and it still does it.

Any thoughts on what's up?

Thanks

This is not the right place to ask questions about JavaScript. Try some forums --asqueella 20:18, 14 Apr 2005 (PDT)

Then what is the "Discussion" board for?