Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / November 2003

Tip: Looking for answers? Try searching our database.

How and where do define classes?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henke - 30 Nov 2003 13:54 GMT
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/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.