I have a python script that runs from php with exec command. It takes about 5-10 seconds to complete. While the python script is processing I would like to show a progress bar to the user. In fact, it doesn't need to be a progress bar, a 'loading... bar' would be more than enough.
As I have already said, I don' know much about this, but I think I need ajax to do this. Googling about this I have found this blockUI plugin that seems great.
I know I have to use something like
$().ajaxStart($.blockUI).ajaxStop($.unblockUI); but I really don't know how.
Here are some 'chunks of of code' I think will be necessary:
Sorry if I seem to vague, but I really don't know much about this and would be very grateful if anyone could help me out on this. Thanks.