Jquery Simpledialog2未捕获类型错误:无法读取未定义的属性“sdIntContent”

Jquery Simpledialog2未捕获类型错误:无法读取未定义的属性“sdIntContent”,jquery,jquery-ui,jquery-mobile,simpledialog,Jquery,Jquery Ui,Jquery Mobile,Simpledialog,我在jquery mobile上工作,并使用simpledialog2创建对话框 我的代码 <li><a href="#" data-rel="dialog" onclick="return openpopup();" style="font-weight:normal;">Register</a></li> function openpopup() { $('#mobile-login-panel').simpledialog2({

我在jquery mobile上工作,并使用simpledialog2创建对话框

我的代码

<li><a href="#" data-rel="dialog" onclick="return openpopup();" style="font-weight:normal;">Register</a></li>



function openpopup() {
    $('#mobile-login-panel').simpledialog2({
       autoOpen: false,
    resizable: true,
    height: 'auto',
    headerText: 'Sign in',
    headerClose: true,
    width:'auto',
    headerClose: true,
        blankContent:"SomeHtml"


    });
    $("div.ui-simpledialog-container ").appendTo($("form#frmdiaLogin"));
    return false;
    }

有什么解决方案吗?

我唯一可以修复它的方法是使用SimpleDialog2.js的未压缩版本并更改以下内容:

if ( self.options.mode === 'blank' ) {
        $.mobile.sdCurrentDialog.sdIntContent.find('select').each(function() {
            if ( $(this).data('nativeMenu') == false ) {
                $(this).data('selectmenu').menuPage.remove();
                $(this).data('selectmenu').screen.remove();
                $(this).data('selectmenu').listbox.remove();
            }
        });
    }


我也一样。你找到解决办法了吗?不幸的是还没有。但是我必须搬到一个图书馆去你换了图书馆吗?如果是的话。。。您使用的是哪个库?Jquery mobile现在有了自己的对话框,您可以查看它。它应该从Jquery.mobile.SimpleDialog2.js的第337行开始
if ( self.options.mode === 'blank' ) {
        $.mobile.sdCurrentDialog.sdIntContent.find('select').each(function() {
            if ( $(this).data('nativeMenu') == false ) {
                $(this).data('selectmenu').menuPage.remove();
                $(this).data('selectmenu').screen.remove();
                $(this).data('selectmenu').listbox.remove();
            }
        });
    }
if ( self.options.mode === 'blank' ) {
        if ($.mobile.sdCurrentDialog) {
            $.mobile.sdCurrentDialog.sdIntContent.find('select').each(function() {
                if ( $(this).data('nativeMenu') == false ) {
                    if ( $(this).data('selectmenu') ) {
                        $(this).data('selectmenu').menuPage.remove();
                        $(this).data('selectmenu').screen.remove();
                        $(this).data('selectmenu').listbox.remove();
                    }
                }
            });
        }
    }