Hi Cliff,
Thank you for your example. It is a bit disappointed to me that it is not possible to call the superclass's constructor in prototype.
So may anyone know how to use the "bind" function? I was wondering if it is anything related to inheritance.
Merry Christmas and happy coding to all of
Jerod Venema wrote:
Hey everyone,
Been working with this JSTree control...modified all the
"setAttribute" calls, and also swapped out some of the recursion
calls, since I want it to maintain state. I've gotten to the point
where it properly displays styles and collapses in FF, Opera, and IE6
Hey everyone,Been working with this JSTree control...modified all the "setAttribute" calls, and also swapped out some of the recursion calls, since I want it to maintain state. I've gotten to the point where it properly displays styles and collapses in FF, Opera, and IE6, and FF and Opera properly
Here's one approach:Labour = Class.create();Labour.prototype = { initialize: function(name) { this.name = name; }, showMeYourName: function() { alert(this.name); }}Worker = Class.create();Worker.prototype = Object.extend(Labour.prototype, { initialize: function(name, position) { this.
Hi,
Here is what I want to do:
Labour = Class.create();Labour.prototype = {
initialize:function(name){
this.name = name;
}
}
What I want to do is create a class called "Worker" which will inherit from "Labour", and the signature of "initialize" is "function(name, position)".
Hi,In short :Event.observe mousemouseget position with Event.pointerX and Event.pointerYposition yout element with element.style.top and element.style.leftRegards,Nico
On 12/23/05, Tarek Ziadé <[EMAIL PROTECTED]> wrote:
Hello,
I have added a fade-in/fade-out floating layer to display infos on Ajax