1116sliders: passing objects instead of IDs
- May 4, 2006(reposting, as original post didn't show up on the list)
I wanted to use yahoo-sliders in a tool which replaces specially marked
input-fields with sliders .
I'm surpised to see the Slider constructor and functions like
getHorizSlider to expect the IDs of element rather that the element
itself. It seem awkward when elements are generated from another script,
to have to assign an ID to them pass this ID to the Slider-script which
will look up the element again. Are there particular reasons not to have
a getHorizSlider-method (or a variant of it) taking the div-elements
rather than their IDs? (I'd like to restrict the use of strings to code
which actually deals with text/plain).
1. for an example of the current implementation which does not yet base
on the yahoo widget see: http://gmuer.ch/script-examples/slider-devel
- << Previous post in topic Next post in topic >>