Recently discovered the JS utils that are built-in to newest versions - love it. Question about form submission - I am using the “ToPostURL” in an html form action to post my data back to server, but how best to avoid refreshing or redirecting the page? Is there a sexier way than using iframe as target?
Yeah use $(“form”).bindForm() to send the request via ajax, some examples at:
https://github.com/ServiceStack/EmailContacts/#binding-html-forms
https://github.com/ServiceStack/HttpBenchmarks#registration
Sir Thomas:
[edited]
Got it - works. Nice case of RTFM. It also lets me remove the click handler on the submit button to (in my case) hide the dialog/div where the form resides.