Capability "ajax_support_javascript" does not exist in WURFL

Capability "ajax_support_javascript" does not exist in WURFL

Postby sam@WU2013 » Wed Apr 12, 2017 11:18 pm

Hi,

I have the following capability in PHP

Code: Select all
                'wurfl_capability_filter' => [
                    'advertised_browser',
                    'advertised_browser_version',
                    'advertised_device_os',
                    'advertised_device_os_version',
                    'cookie_support',
                    'form_factor',
                    'device_os',
                    'device_os_version',
                    'is_tablet',
                    'is_wireless_device',
                    'pointing_method',
                    'preferred_markup',
                    'resolution_height',
                    'resolution_width',
                    'ux_full_desktop',
                    'xhtml_support_level',
                    'is_smarttv',
                    'can_assign_phone_number',
                    'brand_name',
                    'model_name',
                    'marketing_name',
                    'mobile_browser_version',
                    'mobile_browser',
                    'ajax_support_javascript',
                    'preferred_markup',
                    'is_smartphone'
                ]


However, when I use

Code: Select all
$wurfl->getCapability('ajax_support_javascript')


I get exception

Capability "ajax_support_javascript" does not exist in WURFL

May I know what else capability I need to include, in order to use ajax_support_javascript ?
sam@WU2013
 
Posts: 11
Joined: Tue Feb 21, 2017 4:09 am

Re: Capability "ajax_support_javascript" does not exist in W

Postby sam@WU2013 » Thu Apr 13, 2017 1:42 am

Sorry. I think I found out why. I need to modify config.php, and run wurfl-updater again.
sam@WU2013
 
Posts: 11
Joined: Tue Feb 21, 2017 4:09 am

Re: Capability "ajax_support_javascript" does not exist in W

Postby aaronp » Thu Apr 13, 2017 2:20 pm

Hi Sam,

No worries; glad you were able to update and load your complete WURFL.xml successfully. It is possible that the API was referring to the evaluation copy of the WURFL.xml file (with a limited set of capabilities) before you modified your config.php.

Aaron
aaronp
 
Posts: 189
Joined: Wed Dec 09, 2015 12:39 pm


Return to PHP API

Who is online

Users browsing this forum: No registered users and 1 guest

cron