Title: Dynamic Progressbar With Ajax Post by: anugrast on May 01, 2015, 06:55:50 PM I want to create dynamic progressbar to show real progress when I process some data with ajax... Can anyone help me... Please....
Title: Re: Dynamic Progressbar With Ajax Post by: stworthy on May 02, 2015, 05:37:11 AM When you retrieve the progress value, you can call 'setValue' method to display the real progress.
Code: var value = ... Title: Re: Dynamic Progressbar With Ajax Post by: anugrast on May 02, 2015, 08:24:33 PM This is my code...
HTML & JS: Code: <div style="margin:20px 0;"> And this is my PHP file Code: for ($x = 1; $x <= 100; $x++) { When I click start, it's nothing happen... I need your advise how to fix it.... Please.... Title: Re: Dynamic Progressbar With Ajax Post by: stworthy on May 03, 2015, 05:43:14 PM Your PHP code takes a long time(99*2 seconds) to response to the browser, please correct it.
Code: for ($x = 1; $x <= 100; $x++) { Title: Re: Dynamic Progressbar With Ajax Post by: anugrast on May 03, 2015, 07:01:09 PM Thanks for your respond...
Why in my progressbar only show 1 step (I mean only show 1% and stack...), there is something else that I should put on my script... Title: Re: Dynamic Progressbar With Ajax Post by: anugrast on May 05, 2015, 08:46:50 PM Anyone help... please...
Title: Re: Dynamic Progressbar With Ajax Post by: lloyd on January 28, 2016, 05:21:31 AM You should create an event message handler.
See: http://www.w3schools.com/HTML/html5_serversentevents.asp example. I have used it in my code when I export data to a csv file. :) |