Can we end a callback function in Jquery from outside the function

I am using the time-ticker function by David Walsh. I did manage to return false from within the callback function, whenever I had to create a new instance, and wrote a new instance altogether. But it would be far more clean code if I could somehow update the call back function form within. Please let me know, even if it is something more general. Thanks in advance :)


You can supply whatever callback you like... it is one of the settings - so if you wanted to end the callback, you just need to return out of it.

    startNumber: 10,
    callBack: function(me) {
        $(me).text('All done! This is where you give the reward!').css('color','#090');
        alert("You can do anything here");
        // Including calling another function
        return false;

Need Your Help

GNUPLOT: Show a x value given a y value


i'm having some problems with gnuplot

JSON.parse JSON string in javascript

javascript php jquery json

I am trying to get a variable ($total_news_array, which contains an array of different news items by title, time posted, etc) from a PHP file into a JS one. I have the following code in my JS file:...