but I am looking to do one adjustment. I want the form when it is posted not to do a postback but instead do a ajaxposting inside the Html page. Any advice of a equally excellent tutorial as the link above?
Not aware of an explicit tutorial, but the basic steps you would need would be:
Implement some JavaScript that hijacks the form post, and prevents it from posting normally.
Collect the details of the form into a data structure, and use something like jquery's post method to do an AJAX post of that data to a surface controller method that has a matching parater in it's signature - the URL for this will be of the form /umbraco/surface/MyController/MyMethod
Have that method do what it needs to do server side and return a JsonResult with some form of response in
In the callback from the AJAX post you can check that JSON, and present the appropriate success or failure message to the user.
MVC forms with controller without page refresh but with ajax instead?
I've got this contact form working and I am happy with it:
http://umbraco.com/follow-us/blog-archive/2013/7/14/moving-from-webforms-to-mvc.aspx
but I am looking to do one adjustment. I want the form when it is posted not to do a postback but instead do a ajaxposting inside the Html page. Any advice of a equally excellent tutorial as the link above?
Not aware of an explicit tutorial, but the basic steps you would need would be:
is working on a reply...