This topic contains 4 replies, has 2 voices, and was last updated by Jason F 9 years ago.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Editors › ScrollBar, Slider, BulletChart, RangeSelector › jqxSlider fires mulitple events
Tagged: bind, click, event, JavaScript, jqxslider, slider, stopPropagation
This topic contains 4 replies, has 2 voices, and was last updated by Jason F 9 years ago.
Hello,
I am using jqxSlider in a webapp. The first time I click it I see the on.click event fire once. Then when I navigate to a different tab on the page and come back, then click on the slider again, it fires two events….then three, then four and so on.
I tried adding stopPropagation / return false, as I saw suggested on Stack Overflow, but that didn’t help. My webapp works well, but I want to get rid of any unnecessary work. Any ideas about this? Thanks! // Jason
Hello Jason F,
Would you be able to reproduce this issue in a JSFiddle example for us to test?
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
I can try, but it may be hard to fully replicate, as we are using the slider to call up internal map services…is the type of behavior I am describing anything you have encountered before?
Hi Jason F,
It is possible that you are binding multiple times to the click event which leads to multiple calls of the event handler.
Please also note that there are events in jqxSlider’s API that may be more suitable in your situation and cause no conflicts in your application.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
OK thanks, I will look into it further.
You must be logged in to reply to this topic.