1. #1
    Ext User
    Join Date
    May 2009
    Posts
    19
    Vote Rating
    0
    Jose Gonzalez is on a distinguished road

      0  

    Red face Ajax.request and Jayrock

    Ajax.request and Jayrock


    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?

  2. #2
    Ext User
    Join Date
    May 2009
    Posts
    19
    Vote Rating
    0
    Jose Gonzalez is on a distinguished road

      0  

    Default Follow up...

    Follow up...


    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.

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,413
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Do you have break on all errors turned on in firebug? Do you get a stacktrace?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1