14.07.2013 Views

Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JavaScript Style Sheets 44<br />

}<br />

fontSize = "16pt";<br />

marginTop = "2cm";<br />

<br />

Similar to Cascading Style Sheets JSSS can be used in a -tag. This Example shows two different methods to<br />

select tags.<br />

Browser support<br />

<strong>Javascript</strong> Style Sheets were only supported by Netscape 4.x (4.0–4.8) but no later versions. No other web browser<br />

integrated JSSS.<br />

External links<br />

• Netscape's JavaScript-Based Style Sheets submission to the W3C [1]<br />

• The dynamic, powerful abilities <strong>of</strong> JavaScript Style Sheets [3]<br />

References<br />

[1] http://www.w3.org/Submission/1996/1/WD-jsss-960822<br />

[2] Håkon Wium Lie; Bert Bos. "Chapter 20 - The CSS saga" (http://www.w3.org/Style/LieBos2e/history/). World Wide Web Consortium. .<br />

Retrieved 23 June 2010.<br />

[3] http://sunsite.uakom.sk/sunworldonline/swol-04-1997/swol-04-webmaster.html<br />

JavaScript engine<br />

A JavaScript engine is specialized s<strong>of</strong>tware which interprets and executes JavaScript. Although there are several<br />

[1] [2]<br />

uses for a JavaScript engine, the most common usage is for web browsers.<br />

History<br />

Before the second browser wars in 2008-2009, the JavaScript engine (also known as JavaScript interpreter or<br />

JavaScript implementation) was known simply as an interpreter that reads JavaScript source code and executes the<br />

script accordingly.<br />

The first ever JavaScript engine was created by Brendan Eich at Netscape Communications Corporation, for the<br />

Netscape Navigator web browser. The engine, code named SpiderMonkey, is implemented in C. It has since been<br />

updated (in JavaScript 1.5) to conform to ECMA-262 Edition 3. The Rhino engine, created primarily by Norris Boyd<br />

(also at Netscape) is a JavaScript implementation in Java. Like SpiderMonkey, Rhino is ECMA-262 Edition 3<br />

compliant. Applications <strong>of</strong> the technology include Apple Safari 4's Nitro, Google Chrome's V8 and Mozilla Firefox<br />

3.5's TraceMonkey.<br />

By far, the most common host environment for JavaScript is a web browser. Web browsers typically use the public<br />

API to create "host objects" responsible for reflecting the DOM into JavaScript.<br />

The web server is another common application <strong>of</strong> the engine. A JavaScript webserver would expose host objects<br />

representing a HTTP request and response objects, which a JavaScript program could then manipulate to<br />

dynamically generate web pages. Micros<strong>of</strong>t's ASP technology for IIS allows server-side code to be written in VB<br />

Script or JScript (Micros<strong>of</strong>t's implementation <strong>of</strong> JavaScript). Jaxer is a web server that runs entirely on JavaScript.<br />

This has the benefit <strong>of</strong> allowing the same code to be shared on the server and on the client.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!