Re: [Rails-spinoffs] Prototype OOP example

2005-12-24 Thread QnA
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

Re: [Rails-spinoffs] Looking to develop for scriptaculous

2005-12-24 Thread vemon388
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

Re: [Rails-spinoffs] Looking to develop for scriptaculous

2005-12-24 Thread Jerod Venema
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

Re: [Rails-spinoffs] Prototype OOP example

2005-12-24 Thread Cliff Mees
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.

[Rails-spinoffs] Prototype OOP example

2005-12-24 Thread QnA
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)".

Re: [Rails-spinoffs] floating layer following the mouse

2005-12-24 Thread Nicolas
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