| | |
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
![]() |
•
•
Join Date: Aug 2009
Posts: 35
Reputation:
Solved Threads: 0
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
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.
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)
<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> <script type="text/javascript"></script> $().ajaxStart($.blockUI).ajaxStop($.unblockUI); </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.
![]() |
Similar Threads
- Where is this Progress bar removed (ASP.NET)
- upload progess bar in php using Ajax (PHP)
- PHP progress bar (PHP)
- designing a progress bar (JavaScript / DHTML / AJAX)
- PHP: reporting upload progress (PHP)
- progress bar (PHP)
- progress bar for fileupload using javascript (JavaScript / DHTML / AJAX)
- About Progress Bar (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: AJAX in IE malfunction
- Next Thread: Prototyping an element
| Thread Tools | Search this Thread |
Tag cloud for ajax, progressbar
acid2 adobe air ajax ajaxcode ajaxexample ajaxhelp alphafive amf apax api arax asp beta browser codes compatible css developer development dojofoundation dynamic dynamically eclipse error ext flash flex form forms frameworks google graphics gwt gxt html ibm ie8 java javascript javascripts jquery jsf jsp listbox microsoft mouse msdn multiple office onreadystatechange opera oracle passing php post problem programming progressbar python ruby rubyconf runtime scriptlets search security session silverlight software sources sql stevewood synchronous tracking ui validation variables vista web webservice wxpython xml zend






