PDA

View Full Version : A Little Problem with form in IE7



blubbi
6 Jul 2007, 1:21 AM
hello everbody,

a have a not nice Problem with the form submit in IE7 fund:

thiscode in my IE7 not correct working:

HTML:
<form id="updategrid"></form>

JS:


DBEUG=1
gridForm.submit(
{
waitMsg: 'saving data ...',
url:'grid_edit_update.php',
method:'POST',
params:{data:jsonData},
success:function(form, action) {
if(DEBUG && Ext.isGecko) {
console.info("saveRows: it's OK");
}
},
failure: function(form, action) {
if(DEBUG && Ext.isGecko) {
console.info("saveRows: Oops, not working!");
}
}
}
);


this code correct working in my IE7:

HTML:
<form id="updategrid" method="POST" action="grid_edit_update.php"></form>

JS:


gridForm.submit(
{
waitMsg: 'saving data...',
url:'./grid_edit_update.php',
method:'POST',
params:{data:jsonData},
success:function(form, action) {
if(DEBUG && Ext.isGecko) {
console.info("saveRows: its OK!");
}
dsGrid.reload();
},
failure: function(form, action) {
if(DEBUG && Ext.isGecko) {
console.info("saveRows: Oops, not working!");
}
}
}
);

:D :-? :(( *hmpf, it's not nice ...

tryanDLS
6 Jul 2007, 7:38 AM
What's not working? Use ext-all-debug.js and set a Firebug BP in the submit fn to see what's happening? You're checking for isGecko - what do expect to happen in IE?