Displaying 1 result from an estimated 1 matches for "loadcallback".
2006 Feb 10
8
Prototype Inheritance example
...through the
controls.js of the scriptaculous library and found something like the below
code, but everytime I ran it I would get a constructor error.
Thanks for any help;
Looking for something like:
MyControls.TextBox = Class.create();
MyControls.TextBox.prototype =
{
baseInitialize: function(loadCallback, saveCallback, saveOptions)
{
this.loadCallback = loadCallback;
this.saveCallback = saveCallback;
....
},
Save: function()
{
//do save operation using options
}
};
MyControls.EditableTextBox = Class.create();
Object.extend(MyControls.EditableTextBox.prototype,
MyContro...