Frage

im setting both values of my range-slider with the following line: $('...').slider( 'values', [ 0, 10000 ] ); Now i have the problem, that this line triggers two times the change( event, ui )-event. Is there a workaround to only trigger it one time? Or is there an other event that i could use / create to get the problem solved?

I just want to avoid sending two times an ajax-request of a huge amount of data

thanks for your replies!

Peter

War es hilfreich?

Lösung

An article here for you: Setting slider value without triggering change event

If you apply something like this when you're setting values in script, you could call your ajax request outside of the change handler and after you set your slider values.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top