ovidiu 02/03/19 01:41:33
Added: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript
system.js
Log:
Created. Defines the necessary JavaScript functions for dealing with
continuations.
Revision Changes Path
1.1
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js
Index: system.js
===================================================================
var suicide;
function callFunction(func, args)
{
print ("callFunction enter callCC = " + callCC);
callCC(function(k) {
suicide = k;
print("callFunction: suicide = " + suicide);
func.apply(this, args);
});
print ("callFunction exit: suicide = " + suicide);
}
function sendPage(pipelineName, pipelineArgs, bizData)
{
print ("pipelineName = " + pipelineName);
var kont;
callCC(function(k) {
kont = k;
cocoon.processPipeline(pipelineName, pipelineArgs, bizData);
print ("suicide now: suicide = " + suicide);
suicide();
});
print ("return from suicide");
return kont;
}
function handleContinuation(kont)
{
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]