PDA

View Full Version : Form submit issue



slmd
30 Dec 2011, 8:18 AM
Hi all,

I have the below that works fine on desktop but freeze my application on a page saying "An error was encountered The action you have requested is not allowed". Here is the code :



var NewsletterForm = Ext.extend(Ext.form.FormPanel,{
id : 'newsletterform',
cls : 'myForm',
scroll : 'vertical',
centered : true,
url : 'myLink.php',
standardSubmit : true,
items : [{
xtype : 'fieldset',
title : 'Newsletter',
defaults :{
labelAlign : 'left',
labelWidth : '40%'
},
items :[{
xtype : 'emailfield',
name : 'email',
label : 'E-mail',
placeHolder : 'xxx@mail.ext',
required : true,
useClearIcon : true
},{
xtype : 'togglefield',
name : 'newsletter',
label : ''
}]
},{
xtype : 'button',
cls : 'bigBtn',
text : 'Save',
handler : function() {
//console.log(Ext.getDom('newsletterform'));
Ext.getCmp('newsletterform').submit();
}
}]
});
Ext.reg('newsletter', NewsletterForm);


Thank you for your help

mitchellsimoens
30 Dec 2011, 8:39 AM
This error comes when running it from a web browser?

slmd
30 Dec 2011, 8:42 AM
That's exactly what happens. Once i press the submit button, it opens the navigator, shows this error and then freeze the app. How can i debug this?