Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
Progress bars and HTML generation
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Progress bars and HTML generation
Subject
:
Progress bars and HTML generation
From: Paul Hertz <
email@hidden
>
Date: Wed, 5 Dec 2007 16:55:25 -0600
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:
This email sent to email@hidden
References:
>
WOLips and Resources problem.
(From: Gaastra Dennis - WO Lists <email@hidden>)
Prev by Date:
Re: Getting EOGenericRecord when I don't want it...
Next by Date:
Re: ExistsInRelationshipQualifier
Previous by thread:
WOLips and Resources problem.
Next by thread:
WOLips and Resources Question
Index(es):
Date
Thread