Side navigation
#7136 closed bug (invalid)
Opened October 08, 2010 08:07PM UTC
Closed October 08, 2010 08:23PM UTC
UI Dialog with ASP.NET
Reported by: | rklose | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.4.3 |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
1) In order to make .net controls work in a jquery UI dialog the dialogs need to attach to the form instead of the document.
This can be done with the follow modifications
Change line 8816 in jquery-ui-1.8.5 to
.appendTo((document.forms.item(0) != null) ? document.forms.item(0) : document.body)
Change line 9036 in jquery-ui-1.8.5 to
uiDialog.appendTo((document.forms.item(0) != null) ? document.forms.item(0) : document.body);
That will allow .net control hosted in a dialog to function properly.
This however raises a new issue. Since the dialog is now in the form, it needs to not post back when you click its buttons. To fix this change line 9102 in jquery-ui-1.8.5 to
var button = $('<button type="button"></button>', props)
This will create an issue with the some of the internal functions specifically rsingleTag.exec( selector ) on line 114 in jquery-1.4.2.js. The regular expression doesn't understand that a single tag could have attributes. It can be corrected by change line 51 in jquery-1.4.2.js to
rsingleTag = /^<(\\w+)(\\s+\\w+="?\\w+"?)*\\s*\\/?>(?:<\\/\\1>)?$/,
Attachments (0)
Change History (1)
Changed October 08, 2010 08:23PM UTC by comment:1
priority: | undecided → low |
---|---|
resolution: | → invalid |
status: | new → closed |
Invalid: Not a jQuery core bug.
Please re-submit your ticket to the jQuery UI bug tracker as we track UI related bugs and issues there http://ui.jquery.com/bugs
Thanks!