Hi, there!
I'm trying to show a form loading the template in a dialog like:
- $('#form_dialog').load(url).dialog({
- bgiframe: true,
- autoOpen: false,
- height: 330,
- width: 800,
- modal: true,
- buttons: {
- "Cancel": function() {
- $(this).dialog("close");
- }
- }
- });
The problem I've found it's when I try to submit the form, it redirects me to the page I've loaded in the dialog.
Is that a wrong way to show and submit forms?
How I have load the form and submit it through the dialog? only with an javascript form and sending an ajax request?
Thanks!