我有问题,得到一个部分视图,是用html表单中出现在jquery对话框中填充。我无法在Jqueryui站点复制该示例。有人能告诉我在JqueryUI对话框小部件中呈现html表单的最简单方法吗?由于
I am getting
误差的形式ET/Scripts/jquery-1.5.1.jsAccept: /deflate User-Agent: Mozilla/4.0(兼容;MSIE 8.0;Windows NT 6.1;WOW64;三叉戟/4.0;GTB6.6;SLCC2;.net CLR 2.0.50727;net CLR3.5.30729;.net CLR 3.0.30729;Media Center PC 6.0;.NET4.0C;.NET4.0E)主机:localhost:50754连接:点火电极饼干:.ASPXANONYMOUS = 3 cejfuuvzaekaaaazwrlymmyytetnji2ys00ztjiltlmnjqtmgu5odq2ntkyotfk54b7on5wgoeekvtvlpo7z2v7otwkj872yahaq6h9q8w1
HTTP/1.1 404 Not Found Server: ASP. html网开发服务器/10.0.0.0日期:周四2011年4月21日19:18:34 GMTX-AspNet-Version: 4.0.30319Cache-Control: private Content-Type:text/html;utf - 8字符集=Content-Length: 3211 Connection: Close
<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>
根据上面的错误,您的服务器上缺少"/Scripts/jquery-1.5.1.js ",因此获得404。有趣的是(假设是复制/粘贴错误)它说的是"ET/Scripts/jquery-1.5.1.js"而不是"GET",但我认为这是一个复制粘贴。