On Dec 15, 2005, at 7:45 AM, Fawzib Rojas wrote:
Is there a way to create a thread in flowscript and have the
"cocoon.processPipeline" run in it?
Yes, definitely...
var t = new java.lang.Thread (
new java.lang.Runnable (
{
run:
function() {
//
// Whatever! Note, this function is a
closure...
//
}
}
)
);
t.start();
Then you can do something like
var progressPageBookmark = cocoon.createWebContinuation().id;
while (t.isAlive()) {
cocoon.sendPageAndWait (
progressPageResource,
{
bookmark: progressPageBookmark
}
);
}
...where you have in the JXTemplate for the progress page:
<meta http-equiv="refresh" content="5; url=${bookmark}"/>
Does that do the trick?
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]