User Tools

Site Tools


web-integration:client-side

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web-integration:client-side [2019/08/05 12:42]
tjotov [Communication]
web-integration:client-side [2020/02/29 10:53]
mpospisek [Web Integration API - Example]
Line 52: Line 52:
 ===== Web Integration API - Example ===== ===== Web Integration API - Example =====
  
-<code html>+<sxh html>
  
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
Line 122: Line 122:
 </html> </html>
  
-</code>+</sxh>
  
  
Line 161: Line 161:
 </sxh> </sxh>
  
-=== Redirect URL for iOS typically provided by server side controler ===+=== Redirect URL set by GUI === 
 +This is usuallly set by server side but can be also managed from client side. Server side has higher priority.
 <sxh java> <sxh java>
     aducid.setRedirectUrl = function(param) {     aducid.setRedirectUrl = function(param) {
         redirectUrl = param;         redirectUrl = param;
 +    }
 +</sxh>
 +
 +=== Error redirect URL set by GUI ===
 +This is usuallly set by server side but can be also managed from client side. Server side has higher priority.
 +<sxh java>
 +    aducid.setErrorPage = function(param) {
 +        errorPage = param;
     }     }
 </sxh> </sxh>
Line 176: Line 185:
 </sxh> </sxh>
  
 +=== Use push ===
 +Tell Web API if it should use push (QR code was used previously).
 +<sxh java>
 +    this.setPush = function(param) {
 +        push = param == true;
 +    }
 +</sxh>
 ==== UI methods ==== ==== UI methods ====
 === Tell server to generate QR / or not to reduce payload === === Tell server to generate QR / or not to reduce payload ===
web-integration/client-side.txt · Last modified: 2020/02/29 10:53 by mpospisek