ASP.NET+JQuery UI Dialog ...
I have a JQuery UI Dialog that inside has a asp:button that must submit to server, but when I add
- $('#PurchaseDetailInput').click(function () {
- $('#dialogPurchaseDetailInput').dialog('open');
- $('#dialogPurchaseDetailInput').parent().appendTo('form:first');
- return false;
- });
Where "parent().appendTo('form:first');", the dialog will cover my web page even if it was hidden and closed! this will also block my other button on my web page screen, but I remove appendTo('form:first');, that's no problem but the asp:button inside is no reaction.
The dialog box is:
- $('#dialogPurchaseDetailInput').dialog({
- draggable: false,
- resizable: false,
- autoOpen: false,
- show: 'blind',
- hide: 'explode',
- modal: true,
- width: 550
- });
And the HTML is:
- ............................
- ............................
- <asp:Button ID="PurchaseDetailInput" runat="server" Text="請輸入代購貨品" />
- ............................
- ............................
- <div id="dialogPurchaseDetailInput" title="請輸入代購貨品資料">
- <asp:textbox ID="XX" runat="server"> XXXXXXXXXXX </asp:textbox>
- <asp:Button ID="PurchaseDetailInputConfirm" runat="server" Text="確認" Width="100px" OnClick="PurchaseDetailInputConfirm_Click" />
- </div>
$('#dialogPurchaseDetailInput').parent().appendTo('form:first'); is really really a big problem with bug !!!!!!!!