form submit without ajax

Hi,

Is there a way to post form information similar to the traditional HTML submit?

For instance,

which will post the information and move to that page. I have my form created in javascript via DhmxlForm. I just want a way to post the whole page, not via ajax/.send method.

Thanks!

Hi
There are not built-in decision, but you can use form methods. But pay attention that this approach will be functional in case, when elements of a dhtmlxform are based on inputs. HTML ‘onSubmit’ method can collect dhtmlx values of a form by means of the input’s attribute ‘name’.

Hi

you can add html-from wrapper around element used as parent for form init, and it should work. names/values added into dom.

html:

js:

var formData = [
{},{},{},…,
{type: “button”, name: “submit”, value: “Submit”}
];
var myForm = new dhtmlXForm(“myDhtmlxForm”, formData);
myForm.attachEvent(“onButtonClick”, function(name){
if (name == “submit”) {
document.getElementById(“myHTMLForm”).submit();
}
});