oo javascript
Sat, Jun 18, 2005At some point I probably knew this, but javascript has support for classes. After a fashion that is, considering they are based on functions. function Wewt(id,name,level) {
this.myid = id;
this.myname = name;
this.level = level;
}
Wewt.prototype.ClassVar = 10
Wewt.prototype.PrettyPrint = Wewt_PrettyPrint;
function Wewt_PrettyPrint()
{
alert(this.myid);
}
In addition to that javascript goodness, I've run across TinyMCE which is a bit of free/opensource javascript that will provide WYSIWYG editing on web pages (think WYSIWYG textareas). It apparently does not work on safari yet, though the developers are working on it. Now for those of us wanting to bind event handlers to all elements of a certain class there are various getElementsByClass implementations availible.
nb: apparently you can not place dhtml content over an activex object (I have never actually tried to do such a thing myself)