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/webapp example2.js
Date Tue, 19 Mar 2002 09:46:23 GMT
ovidiu      02/03/19 01:46:23

  Modified:    src/scratchpad/schecoon/webapp example2.js
  Log:
  Added some more code. Use builtin JavaScript objects to pass
  information to sendPage and cocoon.processPipeline.
  
  Revision  Changes    Path
  1.2       +16 -1     xml-cocoon2/src/scratchpad/schecoon/webapp/example2.js
  
  Index: example2.js
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/example2.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- example2.js	17 Mar 2002 22:04:18 -0000	1.1
  +++ example2.js	19 Mar 2002 09:46:23 -0000	1.2
  @@ -1,4 +1,19 @@
   function mytest(a)
   {
  -  print ("a = " + a);
  +  print ("mytest: a = " + a);
  +  var k = sendPage("document2html", { "source" : "docs/index.xml"}, null);
  +  print ("mytest: k = " + k);
  +}
  +
  +function xsptest(a, b, c)
  +{
  +  print ("xsptest: a = " + a + ", b = " + b + ", c = " + c);
  +  print("arg = " + cocoon.request.getParameter("arg"));
  +  cocoon.processPipeline("xsp", {"source": "xsp/example.xsp"},
  +                         {"abc" : "123", "def" : "456"});
  +}
  +
  +function applytest()
  +{
  +  xsptest.apply (xsptest, 1, 2);
   }
  
  
  

----------------------------------------------------------------------
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