posting a form from within a dialog box

44 views
Skip to first unread message

Justin Sunseri

unread,
Feb 10, 2009, 2:17:52 PM2/10/09
to jQuery UI Development
I've been trying recently to have a small form pop up on a dialog.
I'm using asp.net and i find it very difficult to do this because the
dialogs are removed from the form#aspnetForm I can't seem to add the
dialog back into the form and I can't move the form to surround the
dialog box. What do you suggest and why was the dialog ui element
written in such a way that would make this nearly impossible

Richard D. Worth

unread,
Feb 11, 2009, 5:47:23 AM2/11/09
to jquery...@googlegroups.com
On Tue, Feb 10, 2009 at 2:17 PM, Justin Sunseri <jmsu...@gmail.com> wrote:

I've been trying recently to have a small form pop up on a dialog.
I'm using asp.net and i find it very difficult to do this because the
dialogs are removed from the form#aspnetForm  I can't seem to add the
dialog back into the form and I can't move the form to surround the
dialog box.

You have a couple options:

- before submit do something like .dialog("destroy").appendTo("#myForm");
- contain a form entirely inside the dialog. Like $("form").dialog() or $("div.whichcontainsform").dialog();
- copy the values from the dialog form elements to other form elements which weren't moved. Note: this won't be an option if you have any file input elements.
 
What do you suggest and why was the dialog ui element
written in such a way that would make this nearly impossible

IE6. The dialog has to be at the end of the body to be the top-most element, regardless of z-Index.

- Richard

Mike J

unread,
Feb 26, 2009, 10:36:10 AM2/26/09
to jQuery UI Development
> - before submit do something like .dialog("destroy").appendTo("#myForm");

I was thrilled to find this solution! I was very near the end of my
rope when I found this thread.

After hits the docs on dialog("destroy") I'm left wondering why the
return is not documented.

Song1w

unread,
Apr 16, 2009, 4:19:46 AM4/16/09
to jQuery UI Development
It also saves me a lot of time.

I'm in a cusomer project using JSF together with jQuery, and faced a
preblem that
it failed to get the new value of a value binding when using a jQuery
UI Dialog.

Thanks a lot.
Reply all
Reply to author
Forward
0 new messages