I’m on Rails 2.0.2, and can’t get Ajax working with EXTJS.
I’m trying this from the EXTJS tutorial:
Ext.onReady(function(){
Ext.get('okButton').on('click', function(){
var msg = Ext.get('msg');
msg.load({
url: '/users/ExtStart_ajax',
params: 'name=' + Ext.get('name').dom.value,
text: 'Updating...'
});
msg.show();
});
});
I suspect that the URL I am using is not correct because when I ckick
the ‘okButton’, I simply hang with the spinner going forever. But I
do have a function called ‘ExtStart_ajax’ in my users_controller.rb.
Any help greatly appreciated!