Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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|O4WSetMobile]] routine ==== Example ==== <code> * 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() </code> guides/o4w/o4w_api/o4wgetmobile.txt Last modified: 2024/06/19 20:19by 127.0.0.1