Changeset 343
- Timestamp:
- Oct 24, 2011, 3:42:33 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/services/howtos.txt
r323 r343 117 117 function hellojs(conf,inputs,outputs){ 118 118 outputs=new Array(); 119 outputs [0]={};120 outputs[ 0]["result"]["value"]="Hello "+inputs[0]["S"]["value"]+" from JS World !";119 outputs={}; 120 outputs["result"]["value"]="Hello "+inputs["S"]["value"]+" from JS World !"; 121 121 return Array(3,outputs); 122 122 } -
trunk/zoo-project/zoo-services/hello-js/cgi-env/hello.js
r83 r343 1 1 2 2 function hellojs(conf,inputs,outputs){ 3 outputs[ 0]["result"]["value"]="Hello "+inputs[0]["S"]["value"]+" from the JS World !";3 outputs["result"]["value"]="Hello "+inputs["S"]["value"]+" from the JS World !"; 4 4 //SERVICE_SUCEEDED 5 5 return Array(3,outputs); … … 7 7 8 8 function hellojs1(conf,inputs,outputs){ 9 outputs[ 0]["result"]["value"]="Hello "+inputs[0]["S"]["value"]+" from the JS World !";9 outputs["result"]["value"]="Hello "+inputs["S"]["value"]+" from the JS World !"; 10 10 //SERVICE_SUCEEDED 11 11 return {"result":3,"outputs": outputs};
Note: See TracChangeset
for help on using the changeset viewer.