+ Start a Discussion

Getting form element data onSubmit()?

Another basic question. What is the best way to handle this issue?

I have made a custom HTML form? The form needs to update fields from a Contact object. I have a handle to the dynabean but I'm not sure how to handle the submit?

Should I parse the document.form.elements[] and hardwire the results into the dynabean?

I'm trying to use the bind method but this looks like it's used when you query the contact object first...
Any thoughts on the best way to get elements (like input fields) and update the contact object?

Message Edited by FinTech on 09-09-2006 05:33 PM

I generally don't even use form submits unless I'm doing server side stuff.  I just put an onClick action on a button & do the add/delete/update through javascript.

You can get the element values by document.getElementById("id of element").value & do your thing from there... Be it field validation or add/delete/update or whatever.