Home arrow JavaScript arrow An Object Lesson In JavaScript

An Object Lesson In JavaScript

Think JavaScript is only good for image swaps and flying <div>s?Think again - this article takes an in-depth look at some of theobject-oriented constructs available in JavaScript, and demonstrates howJavaScript objects can substantially speed up code development anddeployment.

TABLE OF CONTENTS:
  1. An Object Lesson In JavaScript
  2. Object Lessons
  3. Sumthing New
  4. Alpha Radiation
  5. Add()ing Some More
  6. Turning Up The Heat
  7. Room With A View
  8. Construction Crew
  9. A Hot Date
By: Vikram Vaswani, (c) Melonfire
Rating: starstarstarstarstar / 23
April 02, 2001

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
It's sad but true - there are a whole bunch of people out there who think that JavaScript is only good for image swaps and ticker tapes.

I'm here to tell you that it ain't so.

Yes, JavaScript is a client-side scripting language; most often, it's used to make objects fly around on a Web page, or validate the data entered into an HTML form. But, once you go beyond the obvious and dig a little deeper, it will become obvious that there's a whole lot more to this simple, easy-to-learn language.

In order to illustrate this, I'm going to spend the next few pages exploring some of the object-oriented constructs available in JavaScript. You didn't know you could use object-oriented concepts in JavaScript?! Shock, shock! Horror, horror!

Now, JavaScript doesn't offer nearly as much power and flexibility in its object model as do languages like Java and Perl; however, as you will see, even the limited features available can come in quite handy at times. And, with a little bit of thought, a clever developer like you can use JavaScript objects to substantially reduce the time spent on code development and testing...while simultaneously gaining the respect of your colleagues and the admiration of the pretty girl next door.

Let's get on with it, shall we?

 
 
>>> More JavaScript Articles          >>> More By Vikram Vaswani, (c) Melonfire
 

blog comments powered by Disqus
   

JAVASCRIPT ARTICLES

- Javascript for Beginners: An Introduction
- Introduction to JavaScript
- Adding Elements to a Tree with TreeView jQue...
- Using the Persist Argument in a TreeView jQu...
- Using Unique and Toggle in a TreeView jQuery...
- Using Event Delegation for Mouseover Events ...
- Using the Animate Option in a Treeview jQuer...
- Using HTML Lists with Event Delegation in Ja...
- Opened and Closed Branches on a TreeView jQu...
- Mouseover Events and Event Delegation in Jav...
- Creating a TreeView JQuery Hierarchical Navi...
- Event Delegation in JavaScript
- A Look at the New YUI Carousel Control
- Working with Draggable Elements and Transpar...
- Displaying Pinned Handles with Resizable Con...

Developer Shed Affiliates

 



© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap

Dev Shed Tutorial Topics: