Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show progress bar with jQuery?

Just to tell the user that your request is being processed.

EDIT:

I've find myself an image.

alt text
(source: maishudi.com)

How to show it in the center of whole page?

like image 879
omg Avatar asked Sep 09 '09 07:09

omg


3 Answers

Progressbar

jQuery progressbar

Progress Bars & Controls

like image 65
rahul Avatar answered Oct 04 '22 23:10

rahul


http://plugins.jquery.com/project/jQueryProgressBar

$(document).ready(function() {
$("#pb1").progressBar();
$("#pb2").progressBar({ barImage: 'images/progressbg_yellow.gif'} );
$("#pb3").progressBar({ barImage: 'images/progressbg_orange.gif', showText: false} );
$("#pb4").progressBar(65, { showText: false, barImage: 'images/progressbg_red.gif'} );
$(".pb5").progressBar({ max: 2000, textFormat: 'fraction', callback: function(data) { if (data.running_value == data.value) { alert("Callback example: Target reached!"); } }} );
$("#uploadprogressbar").progressBar();
});

or

http://docs.jquery.com/UI/Progressbar

$("#progressbar").progressbar({ value: 37 });
like image 31
Natrium Avatar answered Oct 05 '22 00:10

Natrium


You can use one from Tips for Twits. Here's a demo.

like image 22
Kirtan Avatar answered Oct 05 '22 00:10

Kirtan