I need a tutorial or book on JS Classes

Discussion in 'JavaScript' started by rays, Feb 21, 2007.

  1. #1
    I found lot of tutorials explaining basic of JavaScript ... But i want something which will explain me use of classes and objects in Javascript ... i had used prototype and some AJAX functions ... but now need to write my own classes and components in javascript and major task is it must be cross browser
     
    rays, Feb 21, 2007 IP
  2. NickD

    NickD Well-Known Member

    Messages:
    262
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #2
    myclass = function(message)
    {
    this.message = message;
    this.saymessage = function()
    {
    alert(this.message);
    }
    };
    test = new myclass("message_to_say");
    test.saymessage();

    http://w3schools.com/js/js_objects.asp
     
    NickD, Feb 21, 2007 IP
  3. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Hello NickD

    i went through the link .. there is no information about inheritance, abstraction or prototype .. i had found some libraries they are too complicated to understand one of them is script.aculo.us

    most disappointing is there are not comments to understand the core code :(
     
    rays, Feb 21, 2007 IP
  4. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Yeh rays, you are right. All help I have read on internet about JS is very basic. I also want to create my own libraries like mootools and script.aculo. But I am yet unable to find a book or tutorial which has some good information aboutinheritance, abstraction or prototype etc. Please also inform me if you find some useful stuff on this matter. Thanks
     
    designcode, Feb 22, 2007 IP
  5. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    rays, Feb 22, 2007 IP
  6. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #6
    rays, Feb 24, 2007 IP
  7. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #7
    Thanks rays for posting link. I will check it out :)
     
    designcode, Feb 24, 2007 IP