Bug Tracker

Opened 15 years ago

Closed 14 years ago

Last modified 11 years ago

#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:


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)

ui.dialog.js.patch (1.5 KB) - added by waterproofed.elves 15 years ago.
Patch - ui.dialog parent element as option

Download all attachments as: .zip

Change History (6)

Changed 15 years ago by waterproofed.elves

Attachment: ui.dialog.js.patch added

Patch - ui.dialog parent element as option

comment:1 Changed 15 years ago by paul

Owner: changed from paul to rworth

comment:2 Changed 15 years ago by rworth

Status: newassigned

comment:3 Changed 15 years ago by paul

Owner: changed from rworth to scott.gonzalez
Status: assignednew

comment:4 Changed 15 years ago by scott.gonzal

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 14 years ago by scott.gonzal

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.