JavaScript

From OLPC
Revision as of 04:51, 5 June 2007 by Xavi (talk | contribs) (+Translations for a page linked from www.laptop.org)
Jump to navigation Jump to search
  english | español HowTo [ID# 41146]  +/-  

Javascript is a Lisp-like object-oriented language with a C-like syntax that was invented as part of the Netscape web browser. Although it has no relationship at all with Java, some marketing people decided that it would look better if Netscape could claim a feature named Javascript.

The language was standardised by the ECMA under the name ECMAScript and this name is often used by open source advocates who wish to refer to the generic language, not one specific implementation.

The Javascript engine from the Mozilla project is included in xulrunner which is part of the OLPC.

Question: Which is correct, the statement above or the one in http://wiki.laptop.org/go/Xulrunner which states "XULRunner also supports Javascript however this is not part of GECKO and therefore is not supported"?

It says ...not supported by the current Sugar web browser.
It would be a good idea for the OLPC to clarify the situation with xulrunner and GECKO but the OLPC does have Javascript as a standard component and it is found in xulrunner. The catch is that Javascript embedded in HTML pages will not run when loaded by the GECKO-based web browser. But you can still build and run Javascript apps, just use xulrunner.

You can take a look at the project OLPCities. It's an open source, modular project using JavaScript (not Flash) for the creation of on line web applications having the GameBoy style. You can create "Lots" or a complete "City" having activities. There are tutorials available about how to do this. And there are a protopype that you can play not only at the OLPC station but at some browsers (IE, by example), NOW!