ovidiu 02/04/09 17:47:06 Modified: src/scratchpad/schecoon/webapp/examples/calc calc.js Log: Updated to reflect the changes in the API: forwardTo has been renamed to sendPage, and it automatically assumes URIs are to be invoked on the current processor (e.g. sitemap). Revision Changes Path 1.5 +6 -6 xml-cocoon2/src/scratchpad/schecoon/webapp/examples/calc/calc.js Index: calc.js =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/examples/calc/calc.js,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- calc.js 9 Apr 2002 05:38:30 -0000 1.4 +++ calc.js 10 Apr 2002 00:47:06 -0000 1.5 @@ -18,20 +18,20 @@ function getNumber(name, a, b) { - var uri = "cocoon:/calc/getNumber" + name.toUpperCase() + ".html"; - forwardTo(uri, { "a" : a, "b" : b }); + var uri = "calc/getNumber" + name.toUpperCase() + ".html"; + sendPage(uri, { "a" : a, "b" : b }); return parseFloat(cocoon.request.getParameter(name)); } function getOperator(a, b) { - var uri = "cocoon:/calc/getOperator.html"; - forwardTo(uri, { "a" : a, "b" : b }); + var uri = "calc/getOperator.html"; + sendPage(uri, { "a" : a, "b" : b }); return cocoon.request.getParameter("operator"); } function sendResult(a, b, op, result) { - forwardTo("cocoon:/calc/displayResult.html", - { "a" : a, "b" : b, "operator" : op, "result" : result }); + sendPage("calc/displayResult.html", + { "a" : a, "b" : b, "operator" : op, "result" : result }); }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]