-
20 Jul 2007 5:17 AM #1
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!!!!
-
24 Jul 2007 8:43 AM #2
-
25 Jul 2007 5:01 PM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
clear out the html and put "{success: true}"

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
30 Jul 2007 9:24 AM #4
-
30 Jul 2007 10:10 AM #5
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.
Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
14 Nov 2011 5:02 AM #6
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
-
23 Nov 2011 1:17 AM #7
same problem too!
phim hd phim 3d chep phim hd chep phim dau hd dau phat hd hd player hd player phim hd copy phim hd phim hd ipad dau phat hd phu kien iphone hdd box tai nghe monster thiet bi luu tru phu kien ipad iphone hdd dock tvix n1 slim s1 dvico tvix o cung mang huong nghiep tu van tam ly hoc tap nghe nghiep giao duc viec lam xuat khau lao dong tim viec dune hd duo hd life v5 himedia hd600B hdpro i5 dune hd max phim ipad


Reply With Quote