On Sat, Apr 03, 2004 at 01:58:51PM -0800, Christopher Oliver wrote:If you were to use the V2 version of the CForms flowscript API you could do something like this:
These ContinuationsManager API should _not_ be used in a flowscript. Use the sitemap to invoke your continuation, please.This would not work as form.showForm() woudn't use this function ...
Is it possible to solve your problem by using a helper function to send the page:
function sendPageAndWait(uri, biz, ttl) {
cocoon.response.setHeader( "Expires", "-1" );
cocoon.response.setHeader( "Cache-Control", "no-cache" );
cocoon.response.setHeader( "Pragma", "no-cache" );
return cocoon.sendPageAndWait(uri, biz, ttl);
}
Intercepted flow is nicer idea though. Why is it still considered alpha?
lg
function showForm(form, uri) {
form.setBookmark();
cocoon.response.setHeader( "Expires", "-1" );
cocoon.response.setHeader( "Cache-Control", "no-cache" );
cocoon.response.setHeader( "Pragma", "no-cache" );
form.showForm(uri);
}Whenever the form is redisplayed your script will resume right after the call to setBookmark(). You can insert additional code after that which will be executed each time before the form is sent to the browser.
Chris
