-
30 Jan 2011 3:07 PM #1
FormPanel JS error in IE
FormPanel JS error in IE
Hello - I am having a problem with submitting a form in IE (works in Firefox). I can actually submit the form, but I get a JS error after the submit:
Any insight why this is happening?Code:var myForm = new Ext.form.FormPanel({ renderTo:'patient-form', id:'patientForm', width:650, title:'Request Form', url:'actions/referral/test.cfm', items:[{ xtype:'textfield', fieldLabel:'My Name', name:'myname' }], buttons: [{ text: 'Submit Request', handler: function() { // This is what seems to be causing the problem.... myForm.getForm().submit({ success: function(form, action) { Ext.MessageBox.alert('Status', 'Request Successful!'); }, failure: function(resp,opt) { Ext.MessageBox.alert('Status', 'There was an error'); } }); } }] });
Thanks,
-Jim
-
30 Jan 2011 6:06 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Jim,
It's hard to tell what's going on with this code snippet. Try installing fiddler and looking at the stuff coming back to the form.
Also, stating "I get a JS error" doesn't help us much

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.
-
31 Jan 2011 9:33 AM #3
Thanks for your response jgarcia. That was part of my issue - not much information available regarding the JS error. I typically use Firebug in my FF browser to debug these types of errors. But since it worked in FF I was having trouble identifying the root cause of the issue. I did install Fiddler per your suggestion. I figured out what the problem was: I was not returning a JSON object after the form submitted. Once I fixed that up IE worked fine. Thanks!
-Jim
-
31 Jan 2011 9:44 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Glad to hear that you found a resolution


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.
Similar Threads
-
FormPanel JS error in IE
By mclovin in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 1 Feb 2011, 5:11 AM -
Error: formpanel , tabpanel and formpanel again
By newname2008 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 29 Jun 2009, 12:16 AM -
Help me! please -- I have a error with the Ext.FormPanel
By rburgos in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 13 Apr 2009, 3:34 PM -
FormPanel throwing an error..
By herrjj in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 14 Apr 2008, 2:47 PM -
extend FormPanel error
By boyjunqiang in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 18 Oct 2007, 6:54 PM


Reply With Quote