I have this simple function which I call from my applications launch()
function:
function ajaxCall(){
Ext.Ajax.request({
url: 'ajax/Hello!', // Request should go to host/ajax url as http get request
// and server should return plain text `Hello!` as answer
success: function(response){
prompt('Ajax call success!', response.responseText); // My own prompting method
}
});
}
The problem is that this request doesn't seem to get made. It doesn't show up on my Play framework server or in Google Chrome's network developer tab.
EDIT
Program also seems to get stuck to the Ext.Ajax.request
function.
I noticed that I forgot to add the Ext.Ajax
to my applications requires field. After adding it everything works just fine.