Skip to main content

Bug Tracker

Side navigation

#2409 closed bug (wontfix)

Opened February 26, 2008 12:44AM UTC

Closed April 19, 2008 02:05PM UTC

Last modified March 15, 2012 02:03AM UTC

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 February 26, 2008 12:46AM UTC.

    Patch - ui.dialog parent element as option

Change History (5)

Changed February 26, 2008 01:01PM UTC by paul comment:1

owner: paulrworth

Changed February 26, 2008 05:14PM UTC by rworth comment:2

status: newassigned

Changed March 14, 2008 03:50PM UTC by paul comment:3

owner: rworthscott.gonzalez
status: assignednew

Changed March 14, 2008 05:16PM UTC by scott.gonzal comment:4

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.

Changed April 19, 2008 02:05PM UTC by scott.gonzal comment:5

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.