gwt/extjs - form not submitting
- by msaif
i have form tag received from designer.
i need to submit the form from GWT given below.
FormPanel form = null;
Button submit = null;
function onModuleLoad(){
form = FormPanel.wrap(DOM.getElementById("MyForm"));
form.setEncoding(FormPanel.ENCODING_MULTIPART);
submit = Button.wrap(DOM.getElementById("OK"));
submit.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
// button clicked confirmed
form.submit();
}
});
formSubmitHandler = form.addSubmitHandler(new SubmitHandler(){
public void onSubmit(SubmitEvent event) {
}
});
}
but form was not submitted.
designer wrote the following lines.
form action="./a.cgi" method="post" name="MyForm" id="MyForm"
input type="button" value="OK"
form