Nov 28, 2012, 1:21 PM
[CLOSED] Form Submit
Please light me with Form Submitting:
Submit function:
And is not a problem in collecting form data because
var a = Ext.encode(formPanel.getForm().getValues()) is working fine and received in handler.
I missed something but don't know what!
Submit function:
function submit(formPanel) {
var a = Ext.encode(formPanel.getForm().getValues());
formPanel.getForm().submit({
params: {
v:a
},
standardSubmit:true,
waitMsg: 'Submiting...',
url: 'Handler_CustomerService.ashx',
success: function () {
log('Success! End submiting');
},
failure: function () {
log('Error! End submiting');
}
});
}
handler: public class Handler_CustomerService : IHttpHandler, IReadOnlySessionState
{
public void ProcessRequest(HttpContext context)
{
this.context = context;
string comp = context.Request["v"];
SubmitHandler dataHandler = new SubmitHandler(context);
Response sr = new Response(true);
try
{
}
catch (Exception e)
{
sr.Success = false;
sr.Message = e.Message;
}
sr.Return();
}
The problem is I can't get submited values, dataHander has no data.And is not a problem in collecting form data because
var a = Ext.encode(formPanel.getForm().getValues()) is working fine and received in handler.
I missed something but don't know what!
Last edited by Daniil; Nov 29, 2012 at 3:50 AM.
Reason: [CLOSED]