Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.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

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
JqueryUI对话框MVC3 HTML表单_Html_Jquery Ui_Forms_Asp.net Mvc 3_Dialog - Fatal编程技术网

JqueryUI对话框MVC3 HTML表单

JqueryUI对话框MVC3 HTML表单,html,jquery-ui,forms,asp.net-mvc-3,dialog,Html,Jquery Ui,Forms,Asp.net Mvc 3,Dialog,我在获取包含html表单的局部视图以显示在Jqueryui对话框中时遇到问题。我无法在Jqueryui站点复制该示例。 有人能告诉我在JqueryUI对话框小部件中呈现html表单的最简单方法吗?谢谢 我越来越 错误 ET/Scripts/jquery-1.5.1.js HTTP/1.1 接受:/Accept编码:gzip, deflate用户代理:Mozilla/4.0 (兼容; msie8.0 ; windowsnt 6.1 ;; WOW64;三叉戟/4.0;GTB6.6;SLCC2; .N

我在获取包含html表单的局部视图以显示在Jqueryui对话框中时遇到问题。我无法在Jqueryui站点复制该示例。 有人能告诉我在JqueryUI对话框小部件中呈现html表单的最简单方法吗?谢谢

我越来越

错误

ET/Scripts/jquery-1.5.1.js HTTP/1.1 接受:/Accept编码:gzip, deflate用户代理:Mozilla/4.0 (兼容; msie8.0 ; windowsnt 6.1 ;; WOW64;三叉戟/4.0;GTB6.6;SLCC2; .NET CLR 2.0.50727;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0;.NET4.0C;.NET4.0E) 主机:本地主机:50754连接: 保持活力Cookie: .ASPXANONYMOUS=3cjfuuvzaekaazwrlymmyytnji2ys00ztjiltlmnjqtmgu5odq2ntkyotfk54b7on5wgoeekvtvlpo7z2v7otwkj872yahaq6h9q8w1

找不到HTTP/1.1 404服务器:ASP.NET 开发服务器/10.0.0.0日期:星期四, 2011年4月21日19:18:34格林尼治标准时间 X-AspNet-Version:4.0.30319 缓存控制:专用内容类型: text/html;字符集=utf-8 内容长度:3211连接:关闭

形式

<div id="dialog-form" title="Create new user"><form id="form1">
<fieldset>
    <label for="name">Name</label>
    <input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
    <label for="email">Email</label>
    <input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all" />
    <label for="password">Password</label>
    <input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
<button id="opener">Create new user</button></form></div>

名称
电子邮件
密码
创建新用户
剧本

  <script type="text/javascript">  $(function ()  {
        $( "#dialog-form" ).dialog({
        autoOpen: false,
        height: 300,
        width: 350,
        modal: true,
        buttons: 
        {           
            Cancel: function() 
            {
 $( this ).dialog( "close" );
            }
        }
        $("#opener").click(function() { 
           $("#dialog-form").dialog("open"); 
           }
      });                        
   </script>
$(函数(){
$(“#对话框窗体”).dialog({
自动打开:错误,
身高:300,
宽度:350,
莫代尔:是的,
按钮:
{           
取消:函数()
{
$(此).dialog(“关闭”);
}
}
$(“#开启器”)。单击(函数(){
$(“#对话框窗体”)。对话框(“打开”);
}
});                        

根据上面的错误,您的服务器上缺少“/Scripts/jquery-1.5.1.js”,因此得到了一个404。有趣的是(假设存在复制/粘贴错误),它说“ET/Scripts/jquery-1.5.1.js”不是“GET”,但我假设是复制粘贴