Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ui Microsoft JScript运行时错误:对象不存在';t支持属性或方法';对话框';在jQuery中_Jquery Ui_Dialog - Fatal编程技术网

Jquery ui Microsoft JScript运行时错误:对象不存在';t支持属性或方法';对话框';在jQuery中

Jquery ui Microsoft JScript运行时错误:对象不存在';t支持属性或方法';对话框';在jQuery中,jquery-ui,dialog,Jquery Ui,Dialog,“并获得下面的错误 Microsoft JScript运行时错误:对象不支持属性或方法“dialog” 我正确地引用了jQuery,如下所示 I have a problem of implementing the jQuery Dialog as Modal Form. $(document).ready(function(){ $("#add-newItem") .button() .click(function () {

“并获得下面的错误

Microsoft JScript运行时错误:对象不支持属性或方法“dialog”

我正确地引用了jQuery,如下所示

I have a problem of implementing the jQuery Dialog as Modal Form.



$(document).ready(function(){
$("#add-newItem")
           .button()
           .click(function () {
               alert('a');
               debugger;
               $("#dialog-form").dialog("open");
           });
});




Here execution is hitting the method and displays "Alert" as per  the code. After the it comes   to debugger and when I use "F10" it tries to execute the  "$("#dialog-form").dialog("open");

可能是什么问题。如果使用我显示的页面的IE9的F12进行检查,我可以从脚本库中列出对话方法。但是“$(“#对话表单”)无法使用这些方法
问候,


Vinu

您有
吗?确保div元素存在。

是的,我遇到的基本问题是,当我查看即时窗口时,会得到$(“#对话框表单”)[0]。innerHTML“

所有表单字段都是必需的!!!

国家Id”,但在查找$(“#对话框表单”)。dialog('open')对象不支持属性或方法“dialog”您有html代码吗?或网页的URL?如果您执行alert($(“#dialog form”).html()会怎么样?
  <script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
  <script src="../../Scripts/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
  <link href="../../Content/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet"               type="text/css" />


What could be the problem. If check using F12 of IE9 of my displayed page, I can list out the Dialog method from the script libray. but these are not vailable for the "$("#dialog-form")