Nobody?
On 22 Aug., 12:00, pello1337 <[EMAIL PROTECTED]> wrote: > Hi, > I am not a native englisch speaker so please excuse my language. > > I am developing a project which handles a lot of data. Yesterday I > thought about a progressbar, which indicates the actual status of an > Ajax Call (Progressbar Plugin: > e.g.http://www.anthor.net/fr/jquery-progression.html) > > Now it would be nice to know, if somebody knows how I can tell the > progressbar, which status the Ajax call has. > > For example: > A click on a button starts a "load", "post", "get" whatever on a PHP > file. > > $("#button").click(function() { > $.post("the_php_file.php", function(mysql_status) { > if (mysql_status == 1) { > alert("OK"); > } else { > alert("BAD"); > } > }); > > }); > > This is the way I am doing it in the moment. Perfect would be a more > detailed callback. Something like "mysql_status == 1", "...== 2", > "...== 3" and so on after each mysql query has finished. So I could > tell the progressbar, the first mysql query has finished, please go to > 10% and so on. > > I hope you understand what I want. It would be very nice for the user > to know, how long it takes until his data is inserted into the > database or how long it takes, until he sees his requested data. > > Greetings and thanks for your replies. Hopefully :)