I’m trying to understand how to submit a form to my custom server handler with Touch. I see the example to bind a grid with a form and a form with a dataprocessor, but I don’t know how to access the text returned from the AJAX call.
What is the syntax to submit a form via AJAX (sync mode) and receive the resulting string back as text?
I did the following function to update a form field via AJAX:
dhx.ajax(getTextURL, function(gotText, xml, XmlHttpRequest){
$$(‘taskform’).setValues({
Textarea: gotText
});
});
But I don’t know how to send the form variables from “taskform” via this method, so I’m assuming some other syntax is required.
Thanks for your help.