[CLOSED] Request error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Request error

    When I submit a request, a error was occurred.

    Uncaught TypeError: Object [object Array] has no method 'remove'

    from: ext.axd?v=38586:8817

    The wrong code : this.queue.waitingList.remove(item);

    waitingList has no method 'remove'

    This error led to my data cannot refresh

    The entire code:
    onResult : function (options, success, response) {
                if (success === true) {
                    if (options.mode === "css") {
                        Ext.util.CSS.createStyleSheet(response.responseText);
                    } else {
                        var head = document.getElementsByTagName("head")[0],
                            el = document.createElement("script");
    
                        el.setAttribute("type", "text/javascript");
                        el.text = response.responseText;
    
                        head.appendChild(el);
                    }
    
                    var i = 0,
                        item = this.queue.getItem(options.url);
    
                    if (item !== null) {
                        item.loading = false;
                    }
    
                    if (options.loadCallback) {
                        options.loadCallback.apply(window, [options]);
                    }
    
                    if (options.groupCallback) {
                        options.groupCallback.step();
                    }
    
                    while (this.queue.waitingList.length > i) {
                        item = this.queue.waitingList[i];
    
                        if (item.url === options.url) {
                            if (item.loadCallback) {
                                item.loadCallback.apply(window, [item]);
                            }
    
                            if (item.groupCallback) {
                                item.groupCallback.step();
                            }
    
                            this.queue.waitingList.remove(item);
                        } else {
                            i++;
                        }
                    }
                }
                else {
                   Ext.net.DirectEvent.showFailure(response, response.responseText);
                }
    
                this.queue.dequeue(options);
    
                this.doLoad();
            },
    Click image for larger version. 

Name:	QQ截图20140224154722.png 
Views:	13 
Size:	83.7 KB 
ID:	7616
    Last edited by Daniil; Feb 27, 2014 at 11:21 AM. Reason: [CLOSED]

Similar Threads

  1. Request failure error
    By Vaishali in forum 1.x Help
    Replies: 0
    Last Post: May 09, 2012, 5:23 AM
  2. Request failure : Internal Server Error
    By richard in forum 2.x Help
    Replies: 1
    Last Post: Mar 15, 2012, 12:16 PM
  3. Error 404.15 on AjaxMethod.Request with JSon
    By Spootnick in forum 1.x Help
    Replies: 1
    Last Post: Jun 16, 2011, 4:31 PM
  4. [CLOSED] request filtering module Error
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 17, 2009, 3:12 AM
  5. [CLOSED] Request Failure Error
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 22, 2009, 7:11 AM

Tags for this Thread

Posting Permissions