Device Capabilities

ctm
12 years, 4 months ago
Can someone please indicate how we can get a device's capabilities on like a test page printed out using WURFL, to see what the device can do. (this is now after upgrading and installing the scientia plugin).

For example, what we are looking for is:
- the device's screen width
- does the device support ajax/javascript
- does the device have a qwerty keyboard

We want to use this to display different content to different phones.
Thanks
stuart.steedman
12 years, 4 months ago
I am also looking for the same thing, anyone know how to do this ?
dryabov
12 years, 4 months ago
ctm wrote:
Can someone please indicate how we can get a device's capabilities on like a test page printed out using WURFL, to see what the device can do. (this is now after upgrading and installing the scientia plugin).

For example, what we are looking for is:
- the device's screen width
- does the device support ajax/javascript
- does the device have a qwerty keyboard

We want to use this to display different content to different phones.
Thanks


You can get mobile screen size using
 
$MobileJoomla_Device = MobileJoomla::getDevice();
$dev_width  = $MobileJoomla_Device['screenwidth'];
$dev_height = $MobileJoomla_Device['screenheight'];
 
ctm
12 years, 4 months ago
Cool thanks, and what would one use for javascript support ?
ctm
12 years, 3 months ago
Anyone know how to do this ? We want to get the device's capabilities.
stuart.steedman
12 years, 2 months ago
Do you have any idea, please, on how to get the full handset capabilities from Joomla's WURFL? Not just the screenwidth and height?

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.