0
我想複製我在這裏看到 http://jqueryui.com/dialog/#animated具有以下asp.net mvc的觀點jQuery的模態彈出在asp.net mvc的
@{
ViewBag.Title = "Partial";
}
<script>
$(function() {
$("#dialog").dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$("#opener").click(function() {
$("#dialog").dialog("open");
});
});
</script>
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<button id="opener">Open Dialog</button>
@section scripts{
@Scripts.Render("~/Scripts/jquery-1.10.2.js")
@Scripts.Render("~/Scripts/jquery-ui-1.8.11.js")
}
的例子,但jQuery是不點火,我不敢肯定,如果我鏈接了jQuery腳本對什麼......
我也對頁,但沒有頂部試過這種
<script src="@Url.Content("~/Scripts/jquery-1.10.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>
最終我的目標是使用@Ajax.ActionLink(這對我有用),然後使用部分視圖更新的「div」進入模式彈出窗口。但現在,我不能讓這個模式的工作,我感謝幫助傢伙
謝謝你讓我試試吧! – 2014-10-10 18:32:11
IT讓你瘋狂的人你! – 2014-10-10 18:38:00
:)謝謝@AbdulAhmad – Gjohn 2014-10-10 18:39:19