I have the following code:
[DOCUMENT READY]
$("#hincl_working").dialog({autoOpen: false, modal: true});
[SOME JS FUNCTION]
$("#hincl_working").dialog("open");
PROCESSING (takes a few seconds sometimes)
I would like the dialog to open BEFORE the processing starts (and then close right after the processing), but the dialog only shows up AFTER the processing, which is not what I want.
Any thoughts?
use javascript’s setTimeout to delay your processing with 100 milliseconds or so
https://developer.mozilla.org/en/DOM/window.setTimeout
call your PROCESSING function like this, maybe also change the casing.