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 Sat, 30 Mar 2002 05:31:11 GMT
ovidiu      02/03/29 21:31:11

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript
                        system.js
  Log:
  Implement forwardTo.
  
  Revision  Changes    Path
  1.5       +14 -1     xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js
  
  Index: system.js
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- system.js	25 Mar 2002 07:38:01 -0000	1.4
  +++ system.js	30 Mar 2002 05:31:11 -0000	1.5
  @@ -21,7 +21,20 @@
       lastContinuation = k;
     });
   
  -  cocoon.diplayAllContinuations();
  +  return kont;
  +}
  +
  +function forwardTo(uri, bizData)
  +{
  +  var kont;
  +  callCC(function(k) {
  +    kont = new WebContinuation(cocoon, k, lastContinuation);
  +    cocoon.forwardTo(uri, bizData, kont);
  +//     print ("created continuation with id " + kont.id);
  +    suicide();
  +    lastContinuation = k;
  +  });
  +
     return 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