Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View Essentials of Javascript - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

JScript 93 JScript Appeared in 1996 Developer Microsoft Stable release 5.8 (March 2009) Typing discipline dynamic, weak, duck Major implementations Windows Script, JScript .NET Influenced by JavaScript OS Microsoft Windows Usual file extensions .js, .jse, .wsf, .wsc (.htm, .html, .asp) Website JScript [1] JScript is a scripting language based on the ECMAScript standard that is used in Microsoft's Internet Explorer. JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that supports Windows Script, such as Internet Explorer, Active Server Pages, and Windows Script Host. It also means that any application supporting Windows Script can use multiple languages — JScript, VBScript, Perl, and others. JScript was first supported in the Internet Explorer 3.0 browser released in August 1996. Its most recent version is JScript 5.8, included in Internet Explorer 8. Another dialect of JScript (as of 2004 - 2006) was JScript .NET, which was based on the yet-unfinished edition 4 of the ECMAScript standard, and can be compiled for the Microsoft .NET platform. JScript.NET, which added several new features to ECMAScript ed. 3, such as optional static type annotations, appears no longer to be actively developed. Comparison to JavaScript As explained by JavaScript guru Douglas Crockford in his talk entitled The JavaScript Programming Language on YUI Theater, "[Microsoft] did not want to deal with Sun about the trademark issue, and so they called their implementation JScript. A lot of people think that JScript and JavaScript are different but similar languages. That's not the case. They are just different names for the same language, and the reason the names are different was to get around trademark issues." Differences from JavaScript Unlike JavaScript, JScript supports conditional compilation. This allows a programmer to selectively execute code within block comments. Versions JScript The original JScript is an Active Scripting engine. Like other Active Scripting languages, it is built on the COM/OLE Automation platform and provides scripting capabilities to host applications. This is the version used when hosting JScript inside a Web page displayed by Internet Explorer, in an HTML application, in classic ASP, in Windows Script Host scripts and several other Automation environments.

JScript 94 JScript is sometimes referred to as "classic JScript" or "Active Scripting JScript" to differentiate it from newer .NET-based versions. Some versions of JScript are available for multiple versions of Internet Explorer and Windows. For example, JScript 5.7 was introduced with Internet Explorer 7.0 and is also installed for Internet Explorer 6.0 with Windows XP Service Pack 3, while JScript 5.8 was introduced with Internet Explorer 8.0 and is also installed with Internet Explorer 6.0 on Windows Mobile 6.5. Version Date 1.0 Aug 1996 2.0 Jan 1997 3.0 Oct 1997 [2] Introduced with Based [3] on Similar JavaScript version Internet Explorer 3.0 Netscape JavaScript 1.0 Windows IIS 3.0 Netscape JavaScript 1.1 Internet Explorer 4.0 4.0 Visual Studio 6.0 (as part of Visual 5.0 Mar 1999 InterDev) [4] ECMA-262 1 st edition ECMA-262 1 st edition Internet Explorer 5.0 ECMA-262 2 nd edition 1.4 5.1 Internet Explorer 5.01 ECMA-262 2 nd edition 1.4 5.5 Jul 2000 Internet Explorer 5.5 & Windows CE 4.2 ECMA-262 3 rd edition 1.5 5.6 Oct 2001 5.7 Nov 2006 5.8 Mar 2009 Internet Explorer 6.0 & Windows CE 5.0 ECMA-262 3 rd edition 1.5 Internet Explorer 7.0 Internet Explorer 8.0 & Internet Explorer Mobile 6.0 ECMA-262 3 rd [5] edition + ECMA-327 (ES-CP) ECMA-262 3 rd edition + ECMA-327 (ES-CP) + JSON (RFC 4627) 3 JScript is also available on Windows CE (included in Windows Mobile, optional in Windows Embedded CE). The Windows CE version lacks Active Debugging. JScript .NET JScript .NET is a Microsoft .NET implementation of JScript, it is a CLS language and thus inherits very powerful features, but lacks many features of the original JScript language, making it inappropriate for many scripting scenarios. JScript .NET can be used for ASP.NET pages and for complete .NET applications, but the lack of support for this language in Microsoft Visual Studio place it more as an upgrade path for classic ASP using classic JScript than as a new first-class language. 1.3 1.3 1.5 1.5

JScript 93<br />

JScript<br />

Appeared in 1996<br />

Developer Micros<strong>of</strong>t<br />

Stable release 5.8 (March 2009)<br />

Typing discipline dynamic, weak, duck<br />

Major implementations Windows Script, JScript .NET<br />

Influenced by JavaScript<br />

OS Micros<strong>of</strong>t Windows<br />

Usual file extensions .js, .jse, .wsf, .wsc (.htm, .html, .asp)<br />

Website JScript [1]<br />

JScript is a scripting language based on the ECMAScript standard that is used in Micros<strong>of</strong>t's Internet Explorer.<br />

JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that<br />

supports Windows Script, such as Internet Explorer, Active Server Pages, and Windows Script Host. It also means<br />

that any application supporting Windows Script can use multiple languages — JScript, VBScript, Perl, and others.<br />

JScript was first supported in the Internet Explorer 3.0 browser released in August 1996. Its most recent version is<br />

JScript 5.8, included in Internet Explorer 8.<br />

Another dialect <strong>of</strong> JScript (as <strong>of</strong> 2004 - 2006) was JScript .NET, which was based on the yet-unfinished edition 4 <strong>of</strong><br />

the ECMAScript standard, and can be compiled for the Micros<strong>of</strong>t .NET platform. JScript.NET, which added several<br />

new features to ECMAScript ed. 3, such as optional static type annotations, appears no longer to be actively<br />

developed.<br />

Comparison to JavaScript<br />

As explained by JavaScript guru Douglas Crockford in his talk entitled The JavaScript Programming Language on<br />

YUI Theater, "[Micros<strong>of</strong>t] did not want to deal with Sun about the trademark issue, and so they called their<br />

implementation JScript. A lot <strong>of</strong> people think that JScript and JavaScript are different but similar languages. That's<br />

not the case. They are just different names for the same language, and the reason the names are different was to get<br />

around trademark issues."<br />

Differences from JavaScript<br />

Unlike JavaScript, JScript supports conditional compilation. This allows a programmer to selectively execute code<br />

within block comments.<br />

Versions<br />

JScript<br />

The original JScript is an Active Scripting engine. Like other Active Scripting languages, it is built on the<br />

COM/OLE Automation platform and provides scripting capabilities to host applications.<br />

This is the version used when hosting JScript inside a Web page displayed by Internet Explorer, in an HTML<br />

application, in classic ASP, in Windows Script Host scripts and several other Automation environments.

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

Saved successfully!

Ooh no, something went wrong!