cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript system.js
Date Tue, 19 Mar 2002 09:41:33 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message