How can I use OpenERP 6.x's XML-RPC implementation via Javascript, I've tried many js libraries i.e.:
mimic-xmlrpc from sourceforge, timheap/jquery-xmlrpc from github
this is my code:
var user = 'admin';
var password = 'admin';
var dbname = 'dbName';
var authority = 'http://';
var server = 'localhost';
var port = '8069';
var server_url = authority + server + port + '/xmlrpc/';
var forcedUserValue = $.xmlrpc.force('string', user);
var forcedPasswordValue = $.xmlrpc.force('string', password);
var forcedDbNameValue = $.xmlrpc.force('string', dbname);
$.xmlrpc({
url: server_url + 'common',
methodName: 'login',
dataType: jsonp,
params: [forcedDbNameValue, forcedUserValue, forcedPasswordValue],
success: function(response, status, jqXHR) {
alert("Success!");
},
error: function(jqXHR, status, error) {
alert(jqXHR + '-' + status + '-' + error);
}
});
but I'm not getting any response?