|
|
Subject: Slider: passing the slider object to onChange and onSlide? - msg#00436
List: lang.ruby.rails.spinoffs
I'm working with a couple of slider objects on one page. I'm using onChange to do a couple of things. onChange passes the new value of the slider, but not the slider object itself. Has anybody found a way to get the object?
More details: A simple example would be to do the following: Put multiple sliders on a page. Now, when a slider is moved, change it's track color. To do this, I need to know what slider changed in the onChange event, but I only have the slider's value. I need a pointer to the slider itself. Ideas?
Thanks, Patrick -- www.agavegroup.com
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: problems with ".this"
this.array.each((function(element){
alert(element);
alert(this.variable);
}).bind(this));
Hope this helps,
Nicolas
Next Message by Date:
click to view message preview
Dynamically creating or resizing a rectangle
Hi all,
I'm trying to create a sort of timesheet similar to outlook, where you can drag
and drop to create
a rectangle indicating a slot of time. What is the best way to go about this,
and are there any
recommendations to look into? Even pointers into how I can 'draw' or resize a
rectangle would
help!
Thanks,
Abdullah
Previous Message by Thread:
click to view message preview
problems with ".this"
Hello I´m making a class using prototype's class.create(), like this:var >onewClass.prototype = { initialize : function(array) { this.variable = "fooo";
this.array = array;
}, function1 : function() {
this.array.each(function(element){
alert(element);
alert(this.variable);
});
}
};
and I intance it like this:
var array = ("house", "car", "tree");
var newClass = new onewClass(array);
newClass.function1();
The problem is that the alerts appear, but this.variable says
"undefined", how can i do to make it say "fooo", as is declarated in
the initialize part? Thank you and sorry for my english :) :) !!-- Daniel Herrero Dávila
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Next Message by Thread:
click to view message preview
Dynamically creating or resizing a rectangle
Hi all,
I'm trying to create a sort of timesheet similar to outlook, where you can drag
and drop to create
a rectangle indicating a slot of time. What is the best way to go about this,
and are there any
recommendations to look into? Even pointers into how I can 'draw' or resize a
rectangle would
help!
Thanks,
Abdullah
|
|