POST request in Sencha Touch using Ajax
HI, I am trying to make a POST request using Ajax in sencha touch. my problem is when I am sending request my server accepts it as OPTIONS request. my code is :
var post_json = { usrname: username, password: password } ;
Ext.Ajax.request({
url: 'http://localhost:3000/',
method: "POST",
params: {
user_session: post_json
},
success: function(){
alert("sucessful");
},
failure: function(){
alert("fail");
}
});
How can i solve this problem?
How to specify/wire Ajax.request in IDE Sencha Architect 2 ?
I tried to find EXT.Ajax object in Architect but failed. How to wire Ajax.request to AjaxProxy or other visual object. I want to make Ajax.request in Sencha Architect 2.