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 - 30 Nov 2003 13:57 GMT
I mean client-side JScript... not JScript.NET!
/Henke
> Hi!
>
[quoted text clipped - 4 lines]
>
> Thanks, Henke!
Martin Honnen - 30 Nov 2003 14:14 GMT
> 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?
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.

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