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 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:

    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');
    				}            	
            	});
            }
        }]			
    });
    Any insight why this is happening?
    Thanks,
    -Jim

  2. #2
    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


    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

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

      0  

    Default


    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

  4. #4
    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


    Glad to hear that you found a resolution

Similar Threads

  1. FormPanel JS error in IE
    By mclovin in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 1 Feb 2011, 5:11 AM
  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 throwing an error..
    By herrjj in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 14 Apr 2008, 2:47 PM
  5. extend FormPanel error
    By boyjunqiang in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Oct 2007, 6:54 PM

Thread Participants: 1

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