Asynchronously loading form sets wrong action path
Hi all,
I'm currently doing a project, where my client want to be able to open modal windows with the content of child nodes.
This works fine on regular content, but I'm facing an issue when the child node contains a form picker. The form loads fine, but the action path is set to the surface controller path, rather than the path of the node containing the form.
I use a very simple controller, returning a partial view and an IPublishedContent based on node id and partial name:
This might be a general MVC question, but what's the best practice when loading a form asynchronously? The form picker is located in the grid as an leblender editor, if that makes any difference.
I should probably modify the form, so it posts asynchronously aswell?
Have anyone faced similar challenges, or can point me in the right direction at least?
Asynchronously loading form sets wrong action path
Hi all,
I'm currently doing a project, where my client want to be able to open modal windows with the content of child nodes.
This works fine on regular content, but I'm facing an issue when the child node contains a form picker. The form loads fine, but the action path is set to the surface controller path, rather than the path of the node containing the form.
I use a very simple controller, returning a partial view and an IPublishedContent based on node id and partial name:
This might be a general MVC question, but what's the best practice when loading a form asynchronously? The form picker is located in the grid as an leblender editor, if that makes any difference.
I should probably modify the form, so it posts asynchronously aswell?
Have anyone faced similar challenges, or can point me in the right direction at least?
Thanks!
is working on a reply...