I have a slider which on click of a link performs a function. The problem I have is if you click it multiple times it goes haywire. I need to tell the function to not perform any calculations until the previous is done. Or just not perform anything at all if a function is currently animating. I know there is a callback function, but I'm not sure if this is the right thing to use and how to use it. Can anyone enlighten me?
Question
fall3n
I have a slider which on click of a link performs a function. The problem I have is if you click it multiple times it goes haywire. I need to tell the function to not perform any calculations until the previous is done. Or just not perform anything at all if a function is currently animating. I know there is a callback function, but I'm not sure if this is the right thing to use and how to use it. Can anyone enlighten me?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts