Feature Request - conditional execution

Asked by Tom Anderson

Thanks for building this plugin. It meets most of my requirements nicely.

One feature I'd like to see is conditional execution. For example, right before it sends the AJAX request, I'd like to be able to check a boolean value to make sure it doesn't interfere with another periodic process. I envision something like this:

$.poll(ajax_options, {if : function() {return (not_busy == true)}});

Question information

Language:
English Edit question
Status:
Answered
For:
jQuery Poll Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ethan Fremen (mindlace) said :
#1

Another good idea. I'll put this in the next release too... I should do some thinking about it to see if I can add this and fold in the stop functionality to it.

Can you help with this problem?

Provide an answer of your own, or ask Tom Anderson for more information if necessary.

To post a message you must log in.