Hi All,

I follow the example of the documentation to create a contact:

var contact = new mozContact();
contact.init({name: "Tom"}); // Bug 723206
var request = navigator.mozContacts.save(contact);
request.onsuccess = function() {alert("success");};
request.onerror = function() {alert("error")};

My app runs ok on the simulator but i can't save a contact.
Need i import any javascript library? is there any full example how to do this?

Thanks in advance,
Marcos
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to