|
|
(5 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
| == Browser detection outside AppSuite ==
| | The content on this page has moved to https://documentation.open-xchange.com/latest/ui/how-to/browser-detection.html |
| [[File:loginpage.png|thumb|250px|This warning is not shown to a user if you use the form-login]]
| |
|
| |
|
| AppSuite detects the client browser and collects some information about the current device the visitor is using. These informations are used to serve the best UI and enable/disable certain features for his device. The browser detection is done by a standalone and dependency free lib that can be included via script-tag to other sites.
| | Note: Open-Xchange is in the process of migrating all its technical documentation to a new and improved documentation system (documentation.open-xchange.com). Please note as the migration takes place more information will be available on the new system and less on this system. Thank you for your understanding during this period of transition. |
| | |
| This is usefull if you do not use the original AppSuite login page which performs this browser detection. If you use a form-login and jump directly into AppSuite, the user might not see the typical warning AppSuite states on the login page if an unsupported browser is used.
| |
| | |
| To show the same warning to a user without using the original AppSuite login page you should include the browser detection lib in your own login page and show a warning to the user if he does not use a supported browser.
| |
| | |
| === Including the browser.js lib ===
| |
| | |
| You can easily include the browser detection via script-tag to your own login page. It's small, dependency free peace of Javascript code which adds a function to the global scope called <pre>isBrowserSuppported()</pre>
| |
| | |
| The lib is located in the AppSuite UI under <pre>http://somedomain.com/appsuite/src/browser.js</pre>. Add this script tag to your page head <pre><script src="http://somedomain.com/appsuite/src/browser.js" type="text/javascript" charset="UTF-8"></script></pre>
| |
| | |
| In your page <code>onLoad</code> you can then call the the global function <pre>isBrowserSupported</pre> which returns a boolean. If <pre>false</pre> is returned by the function you should show a warning to the user that his browser is not supported.
| |
Latest revision as of 09:50, 22 May 2017
The content on this page has moved to https://documentation.open-xchange.com/latest/ui/how-to/browser-detection.html
Note: Open-Xchange is in the process of migrating all its technical documentation to a new and improved documentation system (documentation.open-xchange.com). Please note as the migration takes place more information will be available on the new system and less on this system. Thank you for your understanding during this period of transition.