PDA

View Full Version : [CLOSED][3.0.0] form submit not working ?



vicirst
24 Aug 2009, 8:25 AM
hi

this code is not working with ver 3.0
and work fine in ver 2.xx


var myForm = new Ext.FormPanel({
url:'abc.php',
bodyStyle:'padding:5px',
defaults: {width: 230},
id:'myContacts',
items:[{
xtype:'textfield',
name:'firstname',
id:'firstname',
fieldLabel:'firstname'
}],
buttons:[{
text:'save',
handler:function(){
myForm.getForm().submit({
url: 'abc.php',
method: 'POST',
params: { op: 'save' }

});
alert('a');

}
}]
});

win = new Ext.Window({
title:'Neuen Kontakt anlegen',
layout:'fit',
width:365,
height:250,
closeAction:'hide',
items:myForm
});
win.show();



try using firefox 3.0.13
google chrome 0.2.149.30

thanks

vicirst
24 Aug 2009, 8:47 AM
after i look at it,
form actually submitted response also received,
but firebug somehow didn't show POST objects/param,
this is useful in debugging.

is this bug to firebug ? but its ok with Ext 2.xx

regards,

jay@moduscreate.com
24 Aug 2009, 11:52 AM
Seems like a bug with what you're doing.

video demonstration: http://tdg-i.com/img/screencasts/2009-08-24_1550.swf

http://tdg-i.com/img/screencasts/2009-08-24_1551.png

evant
24 Aug 2009, 4:21 PM
Not a bug. Marking as closed.