Hello all.
Even though my javascript/ajax knowledge is very low, I would like to be able to do the following, for which I ask you for help:

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:

<script src="jquery-1.3.2.min.js"></script>
<script src="blockUI.js"></script>
<script type="text/javascript"></script>
$.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });
<script type="text/javascript"></script>

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.