I couldn't find information about this subject, I hope you can help me.
I'm using the following code trying to save some settings, but I can't make it work, the web app just get stuck, or continues without giving me the alert:
Here's what I have in the config.xml:
Index.html:Code:<preference name="user" readonly="false" value="User"/>
code.js:Code:<body onload="init();">
without that the web app works fine, the problems come when I add code for saving or loading preferences. I also tried widget.preferences.getItem('user'), and got the same results.Code:function init() { alert(widget.preferences['user']); }
Thanks in advance for your help

Reply With Quote



). Basically the steps you have taken, should be enough to make preferences work.

