Declaring classes in javascript?


    Jan 08 2008 | 8:26 pm
    I was wondering if there is a way to declare classes in javascript and instantiate them? Does anyone have an example that demonstrates this? Sorry for the cross post.
    Thanks, Anthony

    • Jan 08 2008 | 8:32 pm
      On Jan 8, 2008, at 12:26 PM, Anthony Palomba wrote:
      > > I was wondering if there is a way to declare classes in javascript > and instantiate them? Does anyone have an example that demonstrates > this? Sorry for the cross post.
      found with a google on "object oriented programming in javascript"
      As for using classes or functions in other files, see the jitter utilities in C74:/jsextensions
      -Joshua
    • Jan 09 2008 | 3:52 am
      > I was wondering if there is a way to declare classes in javascript > and instantiate them? Does anyone have an example that demonstrates this? Sorry for the cross post.
      Dan Flanagan talks about this in depth in "Javascript: The Definitive Guide"; I really liked his explanation of it. Also, I noticed your austin.rr.com address... let me know if you need me to return UT's copy of it. I've had it checked out for a while.
      Keith