Threaded View

  1. #1
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    383
    Vote Rating
    69
    danguba is a jewel in the rough danguba is a jewel in the rough danguba is a jewel in the rough

      0  

    Thumbs up [Workaround] IE7 upload problem

    [Workaround] IE7 upload problem


    Hello,
    I have problem with Ajax Upload in ExJS. It works fine in Firefox 3.0 but when I try to do same in IE7 it looks like upload never ends. I used Fiddler to catch response and file is uploaded. Fiddler also shows me that server is sending success response but from some reason ExtJs is not catching that so it never enter success function. I’m pretty confused because this work with no problem in Firefox. Here is part of problematic code:

    Code:
    fileUploadPost : function() {
    
            //some code that is not important//
    
            this.cardPanel.items.items[3].getForm().submit({
    
                method : 'POST',
                params : {
                    'jsonData' : jsonData,
                    'jsonTaskData' : jsonTaskData
                },
                waitTitle : 'Connecting',
                waitMsg : 'Sending data...',
                scope : this,
                success : function(form, action) {
                    var submissionPostResponse = Ext
                            .decode(action.response.responseText);
                    if (submissionPostResponse.submissionTicket) {
                        this.submissionTicket = submissionPostResponse.submissionTicket.ticketId;
                    }
                },
                failure : function(form, action) {
                    // TODO Handle form failure
                }
            });
        }
    Last edited by danguba; 20 Feb 2009 at 7:29 AM. Reason: Workaround found
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

Thread Participants: 1