Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How and where do define classes?

0 views
Skip to first unread message

Henke

unread,
Nov 30, 2003, 8:54:15 AM11/30/03
to
Hi!

Is it possible to use classes in jscript, and where should I define them.
If I add a class definition to a jscript section I get syntax error. But I
can se that the class word is a reserved word in jscript. Do I have to
define my classes in js-files or is it something else?

Thanks, Henke!


Henke

unread,
Nov 30, 2003, 8:57:17 AM11/30/03
to
I mean client-side JScript... not JScript.NET!
/Henke

"Henke" <henke...@hotmail.com> skrev i meddelandet
news:u9J%239l0tD...@TK2MSFTNGP12.phx.gbl...

Martin Honnen

unread,
Nov 30, 2003, 9:14:26 AM11/30/03
to

Classic JScript implements ECMAScript edition 3, there class is a
reserved keyword but not one that is used in the language.
ECMAScript edition 3 doesn't know classes, instead it implements
prototypes for objects to define methods.
Check
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/
in particular the section 7 and 8.
And ask further questions in a group on JavaScript or JScript unrelated
to .NET.

--

Martin Honnen
http://JavaScript.FAQTs.com/

0 new messages