Patrick Ryan
2006-Mar-24 19:50 UTC
Slider: passing the slider object to onChange and onSlide?
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@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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
Check out this code: http://www.net4visions.com/dev/dialog/dialog.htm http://www.net4visions.com/dev/downloads/dialog.zip for a sample application of creating resizable rectangles. -Jerod On 3/25/06, Abdullah Jibaly <amjibaly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > 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 > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs