We have the BeginUmbracoForm extension method on the HtmlHelper, are there any plans for an equivalent extension method for the AjaxHelper ? (or perhaps there is already one and I can't find it ?)
At the moment to be able to get the current page (and language) in the controller from an AJAX call we store values in hidden form fields, but it would be nice if this was handled automatically by Umbraco, like it does with the BeginUmbracoForm method.
@Garðar, yes that works for a regular form, and context is restored - but I'd like to be able to do similar with an Ajax.BeginForm() (or an Ajax.BeginUmbracoForm()) where AjaxOptions can be passed though and handled.
@Michael, that's what I'm doing at the moment, but the controller doesn't restore context (without manually injecting hidden fields) - perhaps it should and I'm just doing something wrong ?
AjaxHelper UmbracoBeginForm Extension Methods
Hi,
We have the BeginUmbracoForm extension method on the HtmlHelper, are there any plans for an equivalent extension method for the AjaxHelper ? (or perhaps there is already one and I can't find it ?)
At the moment to be able to get the current page (and language) in the controller from an AJAX call we store values in hidden form fields, but it would be nice if this was handled automatically by Umbraco, like it does with the BeginUmbracoForm method.
Thanks, Hendy
Hi Hendy,
When using this with SurfaceController the Context is sent with the form data so the culture should be correct in the controller.
Hey Hendy,
I'm using this code for AJAX forms:
Thanks for your replies.
@Garðar, yes that works for a regular form, and context is restored - but I'd like to be able to do similar with an Ajax.BeginForm() (or an Ajax.BeginUmbracoForm()) where AjaxOptions can be passed though and handled.
@Michael, that's what I'm doing at the moment, but the controller doesn't restore context (without manually injecting hidden fields) - perhaps it should and I'm just doing something wrong ?
Thanks, Hendy
I understand.
We have never used the Ajax.BeginForm.
Usually we would always create our own javascript binding on the form with BeginUmbracoForm.
We have no problem using ajax that way with the forms.
is working on a reply...