This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
integration-api:start [2018/06/18 07:15] tjotov |
integration-api:start [2018/08/21 15:10] tjotov |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Integration API is an essential part of ADUCID for all web browser scenarios. It connects PEIG, AIM and the browser. | + | Web Integration API is an essential part of ADUCID for all web browser scenarios. It connects PEIG, AIM and the browser. Integration API is an essential component of [[integration: |
+ | Integration API is located in aducid-resurces folder (on Tomcat). It requires jQuery and API js and css files: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | ===== Basic usage with AAA ===== | ||
+ | Create instance of ADUCID object: | ||
+ | var aducid = new ADUCID(); | ||
- | < | + | |
- | <script type=" | + | Set addresses of start, check and proxy operation of aducid-binder: |
- | <link type=" | + | |
+ | | ||
+ | aducid.setProxyUrl("/ | ||
+ | |||
+ | Override default methods to customize you page: | ||
+ | | ||
+ | if (result.status | ||
+ | // | ||
+ | | ||
+ | } | ||
+ | else { | ||
+ | //display error status from result.data.message | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Text displayed before operation | ||
+ | aducid.showQRHint = function(param) { | ||
+ | $('# | ||
+ | } | ||
+ | |||
+ | Text displayed duringoperation | ||
+ | | ||
+ | $('# | ||
+ | } | ||
+ | |||
+ | ===== Detailed description ===== | ||
+ | [[integration-api: | ||
+ | [[integration-api: |