Changes between Version 12 and Version 13 of ZooWebSite/ZOOAPI/Examples
- Timestamp:
- Nov 10, 2010, 6:36:33 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/ZOOAPI/Examples
v12 v13 1 1 = ZOO API Examples = 2 2 3 In this page you can find some small examples on how to use the JavaScript ZOO-API on the server side.3 In this page you can find some small examples on how to use the !JavaScript ZOO-API on the server side. 4 4 5 5 ZOO-API contains many classes and functions. You can find the description list [wiki:ZooWebSite/ZOOAPI/Classes here]. … … 19 19 In this really short example you can see how to create {{{ZOO.Process}}} class instance and call the {{{Execute}}} method on such an instance. Then you'll just need to return a JavaScript object containing the attributes {{{result}}} and {{{outputs}}}, which I'm sure you already know what is about. The first is about the status of the process (can be {{{ZOO.SERVICE_SUCEEDED}}},{{{ZOO.SERVICE_FAILED}}} ad so on), the last is obviously the resulting maps (take a look at the {{{maps}}} internal data structure used by ZOO Kernel in service.h). 20 20 21 == ZOO. UpdateStatus ==21 == ZOO.!UpdateStatus == 22 22 23 23 {{{