1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    4
    Vote Rating
    0
    ratatuia is on a distinguished road

      0  

    Default Submit always failure help!!!

    Submit always failure help!!!


    Hello

    I have a problem with submit

    I created three pages one for html, js and another html page with the return called as "submit.html"

    this is the script

    Code:
    Ext.onReady(function(){
    
        Ext.QuickTips.init();
        Ext.form.Field.prototype.msgTarget = 'side';
    
        var simple = new Ext.form.BasicForm("frm",{
            labelWidth: 75, 
            url:'submit.html'
        });
    
        nameField = new Ext.form.TextField(
            {
                fieldLabel: 'Name',
                width:175,
                allowBlank:false			
            }
        ).applyTo("name");
    
    	simple.render();
    								
    	Ext.get('sub').on('click', function(){
    		if(simple.isValid()) {
    			  simple.submit({ 
    				url:'submit.html',
    				method: 'post',
    
    				success:function(form, action){ 
    					  alert ('Success');
    					},								
    			
    				failure: function(form, action) {
    					  alert ('Failure');
    					}
    			  })
    		  }else{
    			   alert ('not valid');
    		  }									  
    	  }  , this);								
    	
    });


    this is the submit.html

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <response success="true">
    <contact>
        <name>
            <first>Jack</first>
            <last>Slocum</last>
        </name>
        <company>Ext JS</company>
        <email>support@extjs.com</email>
        <state>OH</state>
        <dob>04/15/2007</dob>
    </contact>
    </response>



    in firebug
    response is correct (returns all of submit.html) and post too (sending parameters)
    but i always have failure
    what is wrong

    thanks in advance!!!!

  2. #2
    Sencha User
    Join Date
    May 2007
    Posts
    6
    Vote Rating
    0
    yanidp is on a distinguished road

      0  

    Default


    Anybody can help us?? I've same problem ...

  3. #3
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    clear out the html and put "{success: true}"

  4. #4
    Ext User
    Join Date
    Jul 2007
    Posts
    4
    Vote Rating
    0
    ratatuia is on a distinguished road

      0  

    Default


    Quote Originally Posted by djliquidice View Post
    clear out the html and put "{success: true}"
    I replace all content of return page for {success: true} but not work...

    any ideas???

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Use Firebug with ext-all-debug.js. Look at the response coming back from server and then step thru the code in Form and Action code to see why you're failing.

  6. #6
    Sencha User
    Join Date
    Nov 2011
    Posts
    11
    Vote Rating
    0
    emmaSG is on a distinguished road

      0  

    Default same problem...have you find the solution?

    same problem...have you find the solution?


    Hi, I have the same problem (a few years after!) have you find the solution? how can I fix the problem? thanks for your help

  7. #7

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi