guides:o4w:o4w_api:o4wgetmobile

O4WGetMobile routine

This routine will check for the presence of the "mobile flag" cookie.

O4WGetModile()

This function does not accept parameters.

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:

O4WSetMobile routine

* 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()
 
 
 
 
  • guides/o4w/o4w_api/o4wgetmobile.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1