Results 1 to 2 of 2

Thread: Hello, I'm having errors in Submit Form... Ajax communication failed

  1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    1
    Vote Rating
    0
      0  

    Exclamation Hello, I'm having errors in Submit Form... Ajax communication failed

    Hello, I'm having errors in Submit Form... Ajax communication failed.
    Please help....


    The buttons code...
    PHP Code:
     buttons: [{
                
    text'Save',
                
    formBindtrue,
                
    handler: function(){
                    var 
    form Ext.getCmp('form_new_category').getForm();
                    
                    if(
    form.isValid()){
                      
                        
    form.submit({
                            
    method:'PUT',
                            
    success: function (formaction) {
                                
    Ext.MessageBox.alert ('Message','Is correct');
                            },
                            
    failure: function (formaction) {
                                switch (
    action.failureType) {
                                    case 
    Ext.form.Action.CLIENT_INVALID:
                                        
    Ext.Msg.alert('Failure''Form fields may not be submitted with invalid values');
                                        break;
                                    case 
    Ext.form.Action.CONNECT_FAILURE:
                                        
    Ext.Msg.alert('Failure''Ajax communication failed');
                                        break;
                                    case 
    Ext.form.Action.SERVER_INVALID:
                                       
    Ext.Msg.alert('Failure'action.result.msg);
                               }
                            }
                        });
                    }                
                } 

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890
    Vote Rating
    90
      0  

    Default

    How are you attempting to debug?

Similar Threads

  1. Submit Always failed even though my JSON resposne is success
    By praveena1978 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 25 Feb 2009, 4:41 PM
  2. Submit form result always failed even when succesful result
    By noso in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Dec 2008, 7:45 AM
  3. [Form submit] Transaction failed
    By manube in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 10 Jan 2008, 6:38 AM
  4. Submit the form without ajax
    By conan_lee in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 29 Nov 2007, 8:18 AM
  5. Submit form *without* Ajax?
    By ww in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 30 Aug 2007, 9:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •