all groups > dotnet jscript > november 2005 >
You're in the

dotnet jscript

group:

How is JScript differ from JScript.net?


How is JScript differ from JScript.net? Ben
11/18/2005 7:50:01 PM
dotnet jscript:
Hi all,

How is JScript differ from JScript.net? Which is more close to the ecma
standard?
Can the JScript.net do everything that VBScript does in the WSH
environement, ie, automate Windows and other slick stuff VBS can?
Thanks.

Ben
--
Re: How is JScript differ from JScript.net? Martin Honnen
11/19/2005 12:00:00 AM

[quoted text, click to view]

Well which standard exactly? The Active Scripting engine for JScript is
supposed to implement ECMAScript edition 3.
JScript.NET is Microsoft's attempt to create and implement a .NET
version of JScript that has features (e.g. declaring classes, class
based inheritance) of the ECMAScript edition 4 draft that noone seemed
to be able to finish before some people wanted implementations. (Note: I
am in no way a member of the ECMA working group so the above is my
outside observation based on published drafts and published software).

[quoted text, click to view]

If you are using VBScript and WSH then you can switch to JScript and WSH
without problems (in generally at least).
JScript.NET does not really help you for that, although the .NET
framework can do COM interop if that is needed, see
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconinteroperatingwithunmanagedcode.asp>
But if you want to do COM interop from the .NET framework then it is
easier to do that with the help of tools and JScript.NET is probably one
of the .NET languages with the poorest tool support.

--

Martin Honnen --- MVP XML
Re: How is JScript differ from JScript.net? Sylvain Lafontaine
11/23/2005 9:16:19 PM
JScript.Net - what a useless language!

JScript is a superset of the ECMA Javascript language that is based on the
COM platform and which can be run on both inside IE and WSI. When running
inside IE, JScript is a close implementation of the ECMA Javascript version
3 but with some added features. These added features can be troublesome if
you want to run your javascript code onto other web platforms such as
Netscape, Firefox, Opera, etc. but usually these codes can be adapted to be
more or less multiplatform.

When running inside WSI (Window Scripting Host), JScript has even more
features but of course, we are no longer running inside a browser and things
such as the DOM of the DHTML are evidently missing. Typically, JScript is
used as a batch language for doing simple PC administration when running
inside WSI.

VBScript is similar to JScript in the sense that it's a scripting language
that has been designed to run on both IE and WSI in the same way as JScript
but with the severe limitation that when used as a replacement for JScript
or Javascript, it cannot be made to run on any other plaftorm than IE.

Contrary to JScript and VBScript (and Javascript), JScript.NET is built on
the .NET plaftorm and is not a scripting language (it must be compiled with
the JScript compilator) and won't run natively inside IE or WSI (with the
excerption of course of using the COM/.NET Interoperability). It has access
to the full power of the .NET platform and as such could be considered by
someone as many times more powerfull than JScript or VBScript; however it
will run only on the .NET plaftorm, must be compiled in the same way as C#
and VB.NET and should be viewed instead as some sort of poor parent of the
C# and VB.NET languages: a .NET language but without any GUI interface.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


[quoted text, click to view]

Re: How is JScript differ from JScript.net? DanC
11/25/2005 2:28:03 PM


[quoted text, click to view]

That is totaly wrong. You can use JScript.net syntax without compiling.

And never compare a script language with a language like VB.NET or C#.
A script has a total different sort of result. It is not build for
interaction.

I'm glad that JScript is evoluated to a total OOL. (perhapse one of the
first) VBscript is not eovoluated because it is solved in VB.NET.
If JScript realy was useles, then MS whould never make JScript.Net.
Think about that.
It is not because JScript is less populare that it is useless.
JScript is not JAVAscript. Don't compare apples with lemons. It is not
because it looks like....

Pse change our way of view!

Re: How is JScript differ from JScript.net? PTNymph NO[at]SPAM gmail.com
11/27/2005 9:15:22 PM

[quoted text, click to view]

Oh really?! - How? I've been searching for a way to execute
JScript.NET code using a script engine. Please enlighten me. Is there
an ActiveScripting engine for JScript.NET?? Or are you referring only
to the IE support for JScript.NET syntax?
AddThis Social Bookmark Button