jQuery UI Dialog with ASP.NET button postback

前端 未结 17 1838
鱼传尺愫
鱼传尺愫 2020-11-22 14:43

I have a jQuery UI Dialog working great on my ASP.NET page:

jQuery(function() {
    jQuery(\"#dialog\").dialog({
        draggable: true,
        resizable:          


        
17条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 15:17

    The $('#dialog').parent().appendTo($("form:first")) solution works fine in IE 9. But in IE 8 it makes the dialog appear and disappear directly. You can't see this unless you place some alerts so it seems that the dialog never appears. I spend one morning finding a solution that works on both versions and the only solution that works on both versions 8 and 9 is:

    $(".ui-dialog").prependTo("form");
    

    Hope this helps others that are struggeling with the same issue

提交回复
热议问题