cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Created: WebContinuation
Date Thu, 07 Jun 2007 16:58:06 GMT
A new document has been created.

Document ID: 1389
Branch: main
Language: default
Name: WebContinuation
Document Type: Cocoon Document
Created: 6/7/07 4:57:52 PM
Creator (owner): Reinhard Pötz
State: publish


Mime type: text/xml
Size: 2034 bytes

<p>A <tt>WebContinuation</tt> represents a continuation of a Flowscript.
a user may click on the back button in the browser and restart a saved
computation in a continuation, each <tt>WebContinuation</tt> becomes the parent
of a subtree of continuations.</p>

<p>If there is no parent <tt>WebContinuation</tt>, the created continuation
becomes the root of a tree of <tt>WebContinuation</tt>s.</p>

<p><tt>WebContinuation</tt> objects support the following functions and


<p><em>Property</em> <tt>[String] id</tt></p>

<p>Returns the unique string identifier of this Web Continuation.</p>


<p><em>Property</em> <tt>[Continuation] continuation</tt></p>

<p>Returns the JavaScript continuation associated with this Web Continuation.


<p><em>Property</em> <tt>[WebContinuation] previousBookmark</tt></p>

<p>Returns a reference to the first bookmark continuation among the pages
preceding the one associated with this object, or null if no such bookmark
continuation exists. The returned object is the continuation you would invoke to
implement a "Back" button.</p>


<p><em>Function</em> <tt>[Boolean] isBookmark()</tt></p>

<p>Returns <tt>true</tt> if this continuation was <em>not</em>
created by
<a href="#sendPageAndWait">sendPageAndWait</a>.</p>


<p><em>Function</em> <tt>[WebContinuation] getParent()</tt></p>

<p>Get the parent continuation of this continuation.</p>


<p><em>Function</em> <tt>[Array [WebContinuation]] getChildren()</tt></p>

<p>Get the child continuations of this continuation.</p>


<p><em>Function</em> <tt>invalidate()</tt></p>

<p>Invalidates a <tt>WebContinuation</tt>. This effectively means that the
continuation object associated with it will no longer be accessible from Web
pages. Invalidating a <tt>WebContinuation</tt> invalidates all the
<tt>WebContinuation</tt>s which are children of it.</p>


The document belongs to the following collections: cdocs-flowscript

View raw message