I have a basic form which submits a post request to a localhost server. When I hit submit I get this error log in Aptana:

Code:
Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (eval)
 at app:/media/javascript/extjs/ext-all-debug.js : 4233
 at app:/media/javascript/extjs/ext-all-debug.js : 4352
 at app:/media/javascript/extjs/ext-all-debug.js : 44962
 at app:/media/javascript/extjs/ext-all-debug.js : 44827
 at app:/media/javascript/extjs/ext-all-debug.js : 44931
 at app:/media/javascript/extjs/ext-all-debug.js : 4061
handleTransactionResponse at app:/media/javascript/extjs/adapter/ext/ext-base-debug.js : 1864
checkResponse at app:/media/javascript/extjs/adapter/ext/ext-base-debug.js : 1912
 at app:/media/javascript/extjs/adapter/ext/ext-base-debug.js : 902
undefined at undefined : undefined
Any idea what I'm doing wrong? Here's my code:

Code:
buttons: [{
        text: 'Login',
        handler: function(el) {
                form.getForm().submit({
                        url: AP_ROOT_URL + '/index.php?r=site/login',
                        method: 'post',
                        success: function(form, action) {
                               alert('something');
                        },
                        failure: function(form, action) {
                                switch (action.failureType) {
                                        case Ext.form.Action.CLIENT_INVALID:
                                                Ext.Msg.alert('Failure', 'Please complete all required fields');
                                                break;
                                        case Ext.form.Action.CONNECT_FAILURE:
                                                Ext.Msg.alert('Failure', 'Ajax communication failed');
                                                break;
                                        case Ext.form.Action.SERVER_INVALID:
                                        //Ext.Msg.alert('Failure', action.result.msg);
                                }
                        }
                });
        }
}]