PDA

View Full Version : Ajax.request and Jayrock



Jose Gonzalez
11 May 2009, 3:08 PM
I am having an interesting problem where code that is running under 2.0, fails in 3.0:

The code is:
alert("before conn");
call.yuiconn = Ext.Ajax.request({
url: call.url,
params: { "JSON-RPC": Ext.util.JSON.encode(call.request) },
success: function(response, options) { call.callback(response.responseText.parseJSON()); },
failure: function(response, options) { call.callback(null); }
});
alert("after conn");

[[ALERTS ARE JUST FOR DISCUSSION]]

The first alert displays, the second does not. Any ideas?

Jose Gonzalez
11 May 2009, 4:44 PM
I have tracked the problem to Ext.lib.Ajax.request when it calls Ext.lib.Ajax.asyncRequest in the last line. Past this point, I get lost.

aconran
11 May 2009, 9:05 PM
Do you have break on all errors turned on in firebug? Do you get a stacktrace?