nunez
6 Sep 2007, 9:53 AM
I have some problem to post a datefield. I have 5 fields and the submit works just fine.
But is not working with datefield. Not submitting the value in the date field.
Firebug Post Result
String Field:
id: 1
field: name
value: Test
Datefield:
id: 1
field: date
The value is not posted when is a datefield, I test with number and work just fine.
I know the error is in ' ' I try with value: '10-10-2007' and work fine, but without the ' ' is not working, anyone know how to resolve this?
Thank you.
afteredit Code:
waitMsg: 'Saving changes, please wait...',
url:'index.php?module=data',
params: {
id: ds.data.items[grid.row].id,
field: grid.field,
value: grid.value
},
success:function(form, action) {
Ext.MessageBox.alert('Success', ' Success' );
},
failure: function(form, action) {
Ext.MessageBox.alert('Warning', ' Error ' );
}The base code
http://extjs.com/forum/showthread.php?t=10002
But is not working with datefield. Not submitting the value in the date field.
Firebug Post Result
String Field:
id: 1
field: name
value: Test
Datefield:
id: 1
field: date
The value is not posted when is a datefield, I test with number and work just fine.
I know the error is in ' ' I try with value: '10-10-2007' and work fine, but without the ' ' is not working, anyone know how to resolve this?
Thank you.
afteredit Code:
waitMsg: 'Saving changes, please wait...',
url:'index.php?module=data',
params: {
id: ds.data.items[grid.row].id,
field: grid.field,
value: grid.value
},
success:function(form, action) {
Ext.MessageBox.alert('Success', ' Success' );
},
failure: function(form, action) {
Ext.MessageBox.alert('Warning', ' Error ' );
}The base code
http://extjs.com/forum/showthread.php?t=10002