小编Kar*_*jux的帖子

jQuery UI:未捕获的TypeError:无法读取未定义的属性"display"

我正在尝试使用jquery ajax获取数据,一切正常,我得到了我想要的东西,但我无法显示它因为我得到一个未捕获的TypeError:无法读取未定义的属性'display'.

这里的代码.任何的想法?

/*
 * Get the data from the ajax call and display a dialog
 */

function CreateDialog(email) {

    // get the data from the ajax call
    var promise = AjaxSubscribe(email)

    // if data are available, show the dialog
    promise.success(function (data) { 
        // data is a simple html code
        var dialog = $(data);

        // can't setup the dialog! Error
        // Uncaught TypeError: Cannot read property 'display' of undefined 
        dialog.dialog({
            autoOpen: false,
            modal: true,
            show: {
                effect: "blind",
                duration: 1000 …
Run Code Online (Sandbox Code Playgroud)

javascript jquery jquery-ui-dialog

5
推荐指数
1
解决办法
8052
查看次数

标签 统计

javascript ×1

jquery ×1

jquery-ui-dialog ×1