Any way to show progress while an ON-REV page is processing a script?
Bruce Pokras
bruceap at comcast.net
Mon Aug 8 15:43:44 EDT 2011
Mike,
Thanks for your reply. The input page has a form into which a user types or pastes a list of patents. Upon clicking "Submit" the form POSTS the list to the .lc page for processing. For each patent in the list, the script of the .ic page sends a query to a European Patent Office server. The script then formats the response from the server for each patent as a row in a table. At the end of the processing the table is displayed. For a long list of patents this could take a while. So I am looking for some way for the .lc page to display the progress of its going through the list.
Regards,
Bruce
On Aug 6, 2011, at 1:58 PM, Michael Kann wrote:
> Bruce,
>
> I'm working on something similar. When you write that you have a "list of patent numbers processed by a .lc or .irev page" do you mean that you are going out to fetch the patents each time, or will all the data be on your server? The reason I ask is if the data is on your server it might be better to attack the user delay in your code, rather than work on a progress bar.
>
> For example, I'm presenting 993 titles of videos; all in a similar format, but the whole list is different each time. When I started out it took about 6 seconds from button click to the list appearing. After setting up a poor man's index and retooling a few loops I've gotten the return trip down to about 50 milliseconds -- good enough for government work.
>
> Mike
>
>
> --- On Sat, 8/6/11, Bruce Pokras <bruceap at comcast.net> wrote:
>
> From: Bruce Pokras <bruceap at comcast.net>
> Subject: Any way to show progress while an ON-REV page is processing a script?
> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
> Date: Saturday, August 6, 2011, 11:46 AM
>
> I have a form that uses POST to get a list of patent numbers processed by a .lc or .irev page. Right now, the whole list has to be processed before the user sees that anything has happened. In my case, once all the patent numbers have been processed, the user will see a page of tables with information about each patent. In my revlet version of this process, it was easy to have a field display the progress of the processing with 1 of 20, 2 of 20, 3 of 20, etc. being displayed in a field as the processing of each patent took place.
>
> Is there any way to display a progress indicator while the .lc or .irev page is processing the patent numbers? I have tried a couple of things, such as having a separate "put" command for each patent, but nothing is displayed until all of the patents have been processed.
>
> Regards,
>
> Bruce Pokras
> Blazing Dawn Software
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list