Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Progress bars and HTML generation



I have relied on WOLongResponsePage for situations where I have time-consuming calculations or database processes whose progress I can track.

I'm now dealing with a page that reports on data from surveys, some of which can be very long. Obtaining the raw data doesn't seem to be a problem--that can even just be scooped up from the database and filtered in memory to get the answer data for each item on the survey.

The delay in creating the page seems to come in actually generating the HTML, primarily because it constructs tables of data and charts.

WOLongResponse doesn't seem to be quite the right tool for this situation. The building of the template isn't something I can do within performTask, AFAIK. For one thing, the template gets filled in after appendToResponse completes, which waits for performTask to complete. I suppose that I could use performTask to fetch the data and then construct tables as HTML (rather than relying on the html/wod files and accessor calls), similariy construct any graphics, and pre-cache all that and then just load it into the template. Seems a little primitive, though, to build HTML as strings.

But I can't help but wonder if there isn't a strategy to request a page generated from a component, put up a progress bar while it's generating, and then just hand it off to the server when it's ready.

-- Paul



--
Paul Hertz <email@hidden> |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)|
<http://collaboratory.nunet.net/phertz>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden


This email sent to email@hidden
References: 
 >WOLips and Resources problem. (From: Gaastra Dennis - WO Lists <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.