PDA

View Full Version : ext datefield not posting data to server



anilkamath
13 Jan 2010, 5:25 AM
I ahve used the following code to render my datefield in a div. the divId is an argument passed to the function. this renders the date control correctly.

when i post the form containing this datefield when i try to look at the formcollection (request.form) the key for the datefield does not exist in this collection. any idea why this is happening? and the weirdest thing is that it works in IE but not on firefox.

Note: the form has other fields which are passed successfully.

Thanks

dateField = new Ext.form.DateField({
els: els.dom,
grow: true,
format: 'm/d/Y',
fieldLabel: divId + "field",
name: divId + "Textbox",
//minValue: startMinDate, //set for minimum start and end date
//maxValue: startMaxDate,
allowBlank: false,
readOnly: true,
buttons: [{
text: 'Save'
}, {
text: 'Cancel'
}]
});
dateField.render(div);
dateFieldSet = true;