Despite searching through stackoverflow and the extjs documentation, I keep encountering 404 errors in all the examples I come across.
Ext.Ajax.request({
url: '/project-desktop-service/decisions.json',
method: 'post',
headers: {'Content-Type': 'application/json'},
params: {
rolename: 'rolename'
},
success: function(){console.log('success');},
failure: function(){console.log('failure');}
});
I have experimented with various approaches such as adjusting the content type, using absolute URLs, but unfortunately, the outcome remains the same -- a consistent failure.