#2409 closed bug (wontfix)
jQuery UI Dialog incompatible with ASP.NET
Reported by: | waterproofed.elves | Owned by: | scottgonzalez |
---|---|---|---|
Priority: | major | Milestone: | 1.2.4 |
Component: | ui | Version: | 1.2.3 |
Keywords: | ui dialog | Cc: | |
Blocked by: | Blocking: |
Description
file: ui.dialog.js, version: 1.5b
In ASP.NET there is a single form on the page from which all data is posted back to the server. The dialog widget moves the content it enhances to be a direct child of the body element (i.e. moving it outside the form). As such, form elements in a dialog are not posted back to the server causing the page to 'break' (in some manner). One possible solution would be to add an option to the dialog widget that specifies the element to which it will be appended (patch attached).
Attachments (1)
Change History (6)
Changed 15 years ago by
Attachment: | ui.dialog.js.patch added |
---|
comment:1 Changed 15 years ago by
Owner: | changed from paul to rworth |
---|
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
comment:3 Changed 15 years ago by
Owner: | changed from rworth to scott.gonzalez |
---|---|
Status: | assigned → new |
comment:4 Changed 15 years ago by
Adding an appendTo option may be possible, but it may also cause problems with positioning. This may have to wait until there are layout modules for the dialog to be docked to.
For now, this can be worked around by appending the .ui-dialog element to the form in the close event.
comment:5 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Dialogs are not meant to be used as actual content on a page, and what you want is already very easily accomplished with the technique described above.
Patch - ui.dialog parent element as option