ajax progress bar while php exec command

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2009
Posts: 35
Reputation: nunos is an unknown quantity at this point 
Solved Threads: 0
nunos nunos is offline Offline
Light Poster

ajax progress bar while php exec command

 
1
  #1
Sep 18th, 2009
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:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <script src="jquery-1.3.2.min.js"></script>
  2. <script src="blockUI.js"></script>
  3. <script type="text/javascript"></script>
  4. $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });
  5. </script>
  6. <script type="text/javascript"></script>
  7. $().ajaxStart($.blockUI).ajaxStop($.unblockUI);
  8. </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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 35
Reputation: nunos is an unknown quantity at this point 
Solved Threads: 0
nunos nunos is offline Offline
Light Poster

Re: ajax progress bar while php exec command

 
0
  #2
Sep 19th, 2009
Anyone? Thanks.
Reply With Quote Quick reply to this message  
Reply

Tags
ajax, progressbar

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 1361 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ajax, progressbar
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC