Hi, I'm relatively new to javascript programming, and OOP in general, so please be nice to me ;)
My question is: I'd like to extend the Form class in prototype to have a Disable function that will disable all of the fields in a form. I've already written a function to do this, but I'd like to include it in my own library so I can access it easily and also so it lies within a namespace. I know I can just modify prototype.js to do this, but I'd rather not, if possible, so I can easily update prototype without having to worry about adding my code back in. I have something like this in my html files: <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="libkitchen.js"></script> if possible, I'd like to put the extension of the class into libkitchen.js If nothing else, if you could toss me in the direction of something to read or an example to look at, I will figure it out :) Thanks in advance, and thanks for prototype, it really is an amazing example of javascript :) -Jeremy
pgplUspAVHE71.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs