Re: [flexcoders] Timed Progress bar for 2 minutes.
You could take a page from the book of most routers. When you click reboot on the web interface there is generally a message like this will take about 2 minutes and a progress-bar type thing which edges towards complete. This is not actually polling the device in anyway, in fact usually this takes longer than the device actually takes to reboot (safe margin of error). Eventually it refreshes the page and says now you can log in or takes you to the login page. I would be transparent about the fact that it's going to take ages. Like even a countdown timer instead of a progress bar perhaps. John 2012/1/10 Paul Andrews p...@ipauland.com ** On 10/01/2012 22:39, Guy Morton wrote: The OP has said what it's doing - a firmware update. It takes 2-3 minutes. It's not a db transaction. Ah, I missed that. In that case the bar with enter_frame/timer will do the trick. Thanks for the explanation. Paul On 11/01/2012, at 4:01 AM, Paul Andrews wrote: On 10/01/2012 16:46, Venkat M wrote: My application will try to connect to a java framework, which in turn calls some scripts to execute on a server. If it is a firmware update script that is called, it will typically wait for 2-3 minutes before the update on the server is complete. So I have to keep user understand that process is going on (or else, they may think the system is hanged or not responding with 2 minutes of spinning), to provide some understandably, I am thinking of static pooling a progress bar for 2-3 (standard time which we know) minutes that looks more user friendly. What say? I have never worked on a server that took two or three minutes to update. Usually more than a few seconds is considered unacceptable. Where there have been operations performed on the server that take a long time, I usually have status changes informing the user what is happening. For example, on one system, multiple printouts initiated by differrent users were queued for printing. Each job included a processing element, so the jobhas various statuses QUEUED/ACTIVE/PRINTING/PRINTED/PAUSED/CANCELLED and the user had access to those statuses. I don't know if such a system would apply here, or you just have a very bad database server doing incredibly slow updates. What is your server doing? Paul * Cheers, Venkat. * -- *From:* Paul Andrews p...@ipauland.com p...@ipauland.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 4:13 AM *Subject:* Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C -- *From:* Venkat M venkat_...@yahoo.com venkat_...@yahoo.com *To:* flexcoders@yahoogroups.com flexcoders@yahoogroups.com flexcoders@yahoogroups.com flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 2:09 AM *Subject:* [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) * Cheers, Venkat. * -- John *You're old enough to make your own decisions about the environment without me telling you what you should and shouldn't print. But if you do print, I hope this signature doesn't cause the message to go onto an additional page. Because that would be kind of stupid, wouldn't it?*
Re: [flexcoders] Timed Progress bar for 2 minutes.
On 10/01/2012 01:09, Venkat M wrote: Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) * Cheers, *Venkat.* * Investigate using a Timer() or enter_frame handler update the indicator. You can measure how long the delay has been by using a counter or Date variable. When the two minute has expired, remove the handlers and timer (if you aren't using enter_frame).
Re: [flexcoders] Timed Progress bar for 2 minutes.
You'll need to implement a polling mechanism that ties into your server-side process that can update your progress control. If you are using something like BlazeDS or sockets and can retrieve the that value in realtime you just need to figure ( current / total ) = percent complete. From a user point of view I'd hate to have to sit and look at something running for 2 minutes at a time; just saying'. Cheers, Rick Winscot From: Paul Andrews p...@ipauland.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Tue, 10 Jan 2012 08:19:40 + To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 01:09, Venkat M wrote: Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) Cheers, Venkat.
Re: [flexcoders] Timed Progress bar for 2 minutes.
Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. C From: Venkat M venkat_...@yahoo.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Tuesday, January 10, 2012 2:09 AM Subject: [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) Cheers, Venkat.
Re: [flexcoders] Timed Progress bar for 2 minutes.
On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C *From:* Venkat M venkat_...@yahoo.com *To:* flexcoders@yahoogroups.com flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 2:09 AM *Subject:* [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) * Cheers, *Venkat.* *
Re: [flexcoders] Timed Progress bar for 2 minutes.
My application will try to connect to a java framework, which in turn calls some scripts to execute on a server. If it is a firmware update script that is called, it will typically wait for 2-3 minutes before the update on the server is complete. So I have to keep user understand that process is going on (or else, they may think the system is hanged or not responding with 2 minutes of spinning), to provide some understandably, I am thinking of static pooling a progress bar for 2-3 (standard time which we know) minutes that looks more user friendly. What say? Cheers, Venkat. From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Tuesday, January 10, 2012 4:13 AM Subject: Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C From: Venkat M venkat_...@yahoo.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Tuesday, January 10, 2012 2:09 AM Subject: [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) Cheers, Venkat.
Re: [flexcoders] Timed Progress bar for 2 minutes.
On 10/01/2012 16:46, Venkat M wrote: My application will try to connect to a java framework, which in turn calls some scripts to execute on a server. If it is a firmware update script that is called, it will typically wait for 2-3 minutes before the update on the server is complete. So I have to keep user understand that process is going on (or else, they may think the system is hanged or not responding with 2 minutes of spinning), to provide some understandably, I am thinking of static pooling a progress bar for 2-3 (standard time which we know) minutes that looks more user friendly. What say? I have never worked on a server that took two or three minutes to update. Usually more than a few seconds is considered unacceptable. Where there have been operations performed on the server that take a long time, I usually have status changes informing the user what is happening. For example, on one system, multiple printouts initiated by differrent users were queued for printing. Each job included a processing element, so the jobhas various statuses QUEUED/ACTIVE/PRINTING/PRINTED/PAUSED/CANCELLED and the user had access to those statuses. I don't know if such a system would apply here, or you just have a very bad database server doing incredibly slow updates. What is your server doing? Paul * Cheers, *Venkat.* * *From:* Paul Andrews p...@ipauland.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 4:13 AM *Subject:* Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C *From:* Venkat M venkat_...@yahoo.com mailto:venkat_...@yahoo.com *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 2:09 AM *Subject:* [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) * Cheers, *Venkat.* *
Re: [flexcoders] Timed Progress bar for 2 minutes.
The OP has said what it's doing - a firmware update. It takes 2-3 minutes. It's not a db transaction. On 11/01/2012, at 4:01 AM, Paul Andrews wrote: On 10/01/2012 16:46, Venkat M wrote: My application will try to connect to a java framework, which in turn calls some scripts to execute on a server. If it is a firmware update script that is called, it will typically wait for 2-3 minutes before the update on the server is complete. So I have to keep user understand that process is going on (or else, they may think the system is hanged or not responding with 2 minutes of spinning), to provide some understandably, I am thinking of static pooling a progress bar for 2-3 (standard time which we know) minutes that looks more user friendly. What say? I have never worked on a server that took two or three minutes to update. Usually more than a few seconds is considered unacceptable. Where there have been operations performed on the server that take a long time, I usually have status changes informing the user what is happening. For example, on one system, multiple printouts initiated by differrent users were queued for printing. Each job included a processing element, so the jobhas various statuses QUEUED/ACTIVE/PRINTING/PRINTED/PAUSED/CANCELLED and the user had access to those statuses. I don't know if such a system would apply here, or you just have a very bad database server doing incredibly slow updates. What is your server doing? Paul Cheers, Venkat. From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Tuesday, January 10, 2012 4:13 AM Subject: Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C From: Venkat M venkat_...@yahoo.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Tuesday, January 10, 2012 2:09 AM Subject: [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) Cheers, Venkat.
Re: [flexcoders] Timed Progress bar for 2 minutes.
On 10/01/2012 22:39, Guy Morton wrote: The OP has said what it's doing - a firmware update. It takes 2-3 minutes. It's not a db transaction. Ah, I missed that. In that case the bar with enter_frame/timer will do the trick. Thanks for the explanation. Paul On 11/01/2012, at 4:01 AM, Paul Andrews wrote: On 10/01/2012 16:46, Venkat M wrote: My application will try to connect to a java framework, which in turn calls some scripts to execute on a server. If it is a firmware update script that is called, it will typically wait for 2-3 minutes before the update on the server is complete. So I have to keep user understand that process is going on (or else, they may think the system is hanged or not responding with 2 minutes of spinning), to provide some understandably, I am thinking of static pooling a progress bar for 2-3 (standard time which we know) minutes that looks more user friendly. What say? I have never worked on a server that took two or three minutes to update. Usually more than a few seconds is considered unacceptable. Where there have been operations performed on the server that take a long time, I usually have status changes informing the user what is happening. For example, on one system, multiple printouts initiated by differrent users were queued for printing. Each job included a processing element, so the jobhas various statuses QUEUED/ACTIVE/PRINTING/PRINTED/PAUSED/CANCELLED and the user had access to those statuses. I don't know if such a system would apply here, or you just have a very bad database server doing incredibly slow updates. What is your server doing? Paul * Cheers, *Venkat.* * *From:* Paul Andrews p...@ipauland.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 4:13 AM *Subject:* Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 09:17, claudiu ursica wrote: Are you sure it is exactly 2 minutes? DO you really need to show progress? A spinning animation might suit you better, keep it spinning until the load is done. It would just look like the application had hung. As Rick suggested, two minutes is a very long time. What is it that takes two minutes to be ready? If it's a database query, I'd suggest sorting out the server, because two minutes is a ridiculous amount of time to be waiting for a result. It really looks like your application has a fundamental problem. Paul C *From:* Venkat M venkat_...@yahoo.com mailto:venkat_...@yahoo.com *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Sent:* Tuesday, January 10, 2012 2:09 AM *Subject:* [flexcoders] Timed Progress bar for 2 minutes. Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) * Cheers, *Venkat.* *