[thelist] RE: [JS] Good cases for custom javascript objects

John.Brooking at sappi.com John.Brooking at sappi.com
Tue Mar 9 13:22:07 CST 2004


> Date: Tue, 9 Mar 2004 06:07:41 -0800 (PST)
> From: Tom Dell'Aringa <pixelmech at yahoo.com>
> To: thelist at lists.evolt.org
> Subject: [thelist] [JS] Good cases for custom javascript objects
>
> Hi JS folks out there,
>
> I'm looking for good examples where a custom written javascript object
would 
> make sense. Generally in the past we've seen things such as DHTML menus
built 
> as objects, and even some form validation. I'm looking for other ideas
other 
> than those. Also, if you've written something that you think might work as
an 
> object but never got around to it, that might help too.

Here's an offering under the latter category. I have written modules for
formatting and performing arithmetic on date objects. I have just posted
them to [1]. They were written several years ago, so you'll see some quaint
references like "this is to maintain compatibility with JS 1.1."   :-)
They are currently just functions. I started writing an "extended date"
object, based on Date using the prototype keyword, to wrap these functions
and some other little ones like "isLeapYear" into an object, but never
finished. You're welcome to try to do so.

[1] http://www.pobox.com/~JohnBrook/codelib/ 


This message may contain information which is private, privileged or
confidential and is intended solely for the use of the individual or entity
named in the message. If you are not the intended recipient of this message,
please notify the sender thereof and destroy / delete the message. Neither
the sender nor Sappi Limited (including its subsidiaries and associated
companies) shall incur any liability resulting directly or indirectly from
accessing any of the attached files which may contain a virus or the like. 


More information about the thelist mailing list