Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/74.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
如何使用Javascript或jquery在MVC中获得弹出窗口? $('#btnpoppup2')。单击(函数(){ jQuery.noConflict(); $('#SearchPopupWindow1')。加载(“/Service/ServiceList”, 功能(响应、状态、xhr){ $('SearchPopupWindow1')。对话框('open'); }); });_Javascript_Jquery_Asp.net Mvc 3_Model View Controller - Fatal编程技术网

如何使用Javascript或jquery在MVC中获得弹出窗口? $('#btnpoppup2')。单击(函数(){ jQuery.noConflict(); $('#SearchPopupWindow1')。加载(“/Service/ServiceList”, 功能(响应、状态、xhr){ $('SearchPopupWindow1')。对话框('open'); }); });

如何使用Javascript或jquery在MVC中获得弹出窗口? $('#btnpoppup2')。单击(函数(){ jQuery.noConflict(); $('#SearchPopupWindow1')。加载(“/Service/ServiceList”, 功能(响应、状态、xhr){ $('SearchPopupWindow1')。对话框('open'); }); });,javascript,jquery,asp.net-mvc-3,model-view-controller,Javascript,Jquery,Asp.net Mvc 3,Model View Controller,加载完成后,需要打开对话框 更新代码 <script type="text/javascript"> $('#btnpopup2').click(function () { jQuery.noConflict(); $('#SearchPopupWindow1').load("/Service/ServiceList", function (response, status, xhr) {

加载完成后,需要打开对话框

更新代码

<script type="text/javascript">
    $('#btnpopup2').click(function () {

        jQuery.noConflict();
        $('#SearchPopupWindow1').load("/Service/ServiceList",
                function (response, status, xhr) {
                    $('#SearchPopupWindow1').dialog('open');
               });
   });

在这个片段中,
noConflict()
的目的是什么?我认为它会更令人困惑,更有用。
$('#btnpopup2').click(function () {

        jQuery.noConflict();
        $('#SearchPopupWindow1').load("/Service/ServiceList").dialog('open');

   });