1. #1
    Ext User
    Join Date
    Dec 2007
    Posts
    56
    Vote Rating
    0
    neall is on a distinguished road

      0  

    Default Ajax Request - "this.fireEvent is not a function"

    Ajax Request - "this.fireEvent is not a function"


    Hello,

    I'm trying to run an AJAX request to my server, but for some reason I get the error: "this.fireEvent is not a function" in ext-all-debug.js line 5112. My code is below:

    Code:
    var removeRequest = new Ext.Ajax.request({
        url: '/lineitems/ext_destroy/' + grid_lineitems.getSelectionModel().getSelected().id,
        failure: function() { Ext.MessageBox.alert("Error!", "There was an error communicating with the server.")}
    });
    I've seen other people post about this error in the forums, but haven't figured out what I'm doing wrong here. Any ideas why this would be happening?

    Thanks!

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Ext.Ajax.request is not a constructor.

  3. #3
    Ext User
    Join Date
    Dec 2007
    Posts
    56
    Vote Rating
    0
    neall is on a distinguished road

      0  

    Default


    That would make sense. Cheers.

Thread Participants: 1