1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    35
    Vote Rating
    0
    mclovin is on a distinguished road

      0  

    Default FormPanel JS error in IE

    FormPanel JS error in IE


    Hello - I am having an issue with a form that I am submitting. This is only an issue in IE (works in Firefox). The request does submit, but it throws a JS error. Here is the code:

    Code:
    var myForm = new Ext.form.FormPanel({
    	renderTo:'patient-form',
    	id:'patientForm',
    	width:650,
    	title:'Request Form',
    	url:'mypage.php',
    	items:[{
    		xtype:'textfield',
    		fieldLabel:'My Name',
    		name:'myname'			
    	}],
       buttons: [{
            text: 'Submit Request',
            handler: function() {
    		// This is what seems to be causing the problem....
            	patientForm.getForm().submit({
    			    success: function(form, action) {
    			    	Ext.MessageBox.alert('Status', 'Request Successful!');
    			    },
    				failure: function(resp,opt) {
    					Ext.MessageBox.alert('Status', 'There was an error');
    				}            	
            	});
            }
        }]			
    });
    Any insight on what is causing the JS error?
    Thanks,
    -Jim

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    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


    Jim, patientForm !== myForm.

Similar Threads

  1. Tab in formpanel error htmleditor
    By nukboon in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 13 Sep 2009, 11:50 PM
  2. Error: formpanel , tabpanel and formpanel again
    By newname2008 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Jun 2009, 12:16 AM
  3. Help me! please -- I have a error with the Ext.FormPanel
    By rburgos in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Apr 2009, 3:34 PM
  4. FormPanel Throws Error
    By newb in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Mar 2009, 11:43 PM
  5. Windows + FormPanel Error
    By webdings in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 1 Mar 2008, 6:35 AM

Thread Participants: 1