Difference between revisions of "PHONEGAPDEVICE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function which can be used in .rsp pages and/or server-side procedures to determine the device if the current client is a mobile device ==Syntax== PHONEGAPDEVICE(...") |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[ISPHONEGAP()]], [[ISSERVER()]], [[PHONEGAPVERSION()]], [[PHONEGAPPLATFORM]] | + | [[ISPHONEGAP()]], [[ISSERVER()]], [[PHONEGAPVERSION()]], [[PHONEGAPPLATFORM()]] |
==Description== | ==Description== |
Revision as of 11:35, 21 October 2015
Contents
Purpose
Function which can be used in .rsp pages and/or server-side procedures to determine the device if the current client is a mobile device
Syntax
PHONEGAPDEVICE()
See Also
ISPHONEGAP(), ISSERVER(), PHONEGAPVERSION(), PHONEGAPPLATFORM()
Description
The PHONEGAPDEVICE() function returns the device - 'phone' or 'tablet' - if the current client is a mobile device, otherwise an empty string.
Example
do case case phoneGapDevice() = 'phone' // called from phone mobile client case phoneGapDevice() = 'tablet' // called from tablet mobile client otherwise // not called from mobile client endcase