Retrieving preferences from config.xml

Retrieving preferences from config.xml

BY 26 Mar 2013 Web Application Development

Hi,

I am trying to retrieve the custom preferences in config.xml (<preference name=”map” value=”bing” readonly=”false”/>). I am using widget interface api for this purpose (http://www.w3.org/TR/widgets-apis/). I am not able to get the value of custom preferences using the following code

widget.preferences[‘map’];

Please let me know is there any way to get the custom preferences other than using widget api? or am i doing it wrong?

 

Thanks,

D.P.Karthikeyan.

Written by