Just some more findings:
I realized that the onmouseup event being trapped is for the slider
bar only. If I click on the slider bar and release the mouse button,
it gets triggered.
Now, I guess I need to capture the onmouseup of the sliderthumb sub-
component. Looking at the source of slider component reveals this at
the bottom of slidertrack class definition:
<sliderthumb name="thumb" />
So, for the sake of trying, I modified my method as follows:
<method event="onmouseup" reference="thumb">
Debug.write("Mouse Up ", this.getValue());
</method>
However, it's still not being triggered.
Any help would be greatly appreciated.
Thanks,
Daniel
On May 19, 2006, at 12:01 PM, Daniel Salama wrote:
> I'm trying to use the standard slider component. I need to capture
> the event when the value of the slider changes.
>
> I used the following code:
>
> <slider name="page_range" x="50" y="10" width="150" keystep="1"
> minvalue="1">
> <method event="onvalue" args="v">
> Debug.write("Value ",v);
> </method>
> <method event="onmouseup">
> Debug.write("Mouse Up ",this.getValue());
> </method>
> </slider>
>
> When I move the slider, the debug window shows the values AS I MOVE
> the slider. What I'm interested is capturing ONLY THE LAST value
> set. Something like capturing onmouseup. However, onmouseup event
> doesn't seem to work or doesn't seem to be triggered.
>
> Is there a way (an efficient way) to do this? I looked at the LZPIX
> source to learn how it's done there but, even though I could
> implement something similar as in LZPIX, I thought there has got to
> be an easier way to do that with the standard slider component.
>
> Thanks,
> Daniel
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user