force the processing display

force the processing display

foothfooth Posts: 4Questions: 0Answers: 0
edited April 2012 in General
Is there any way to manually cause the "processing" display graphic to appear? I don't see any method for it in the documentation, but going through the code I found the _fnProcessingDisplay function. I tried calling it like this:

oJobTable.oApi._fnProcessingDisplay(oJobTable.dataTableSettings[0], true);

But that doesn't seem to work (even though it appears to step through the function).

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Have a look at this API plug-in method which should do what you are looking for: http://datatables.net/plug-ins/api#fnProcessingIndicator . Its basically the same thing has you have above, but written as a plug-in, so hopefully will do the job for you (I think the problem is in your reference to the settings object, you would want to use oJobTable.fnSettings() - but the API method is cleaner :-) ).

    Allan
  • foothfooth Posts: 4Questions: 0Answers: 0
    Thanks, that did the trick. Actually, I think it may have been working before but I was turning the indicator back off after an asynchronous call (didn't realize it was async). So, it was effectively turning on and off in a flash.

    But this plugin works great.
This discussion has been closed.