O4WGetMobile routine
Description
This routine will check for the presence of the "mobile flag" cookie.
Syntax
O4WGetModile()
Parameters
This function does not accept parameters.
Returns
Returns "1" if the currently generating page has been set for the mobile browser, or "0" if the page is for the desktop browser. If a prior page was set to mobile mode, O4WGetMobile() will return "1". For example:
See Also
O4WSetMobile routine
Example
* Are we being called while in a mobile environment? bIsMobile = O4WGetMobile() if bIsMobile = "1" then * yes; generate this page in mobile mode as well O4WSetMobile("1") End O4WForm()