0
我有代码调用莫塔尔Bootstrap使用Laravel 4其他页面的代码。但在一个模式不会出现在其他页面。以下是我的javascript代码:Laravel 4莫塔尔阿贾克斯不工作
<script>
$(function() {
//ambil data untuk detail buku
$(".detail-dialog").click(function() {
$('#container-modal-ajax')
.dialog({
modal: true,
title: 'Rincian Buku',
shadow: true,
show:{ effect: "puff", duration: 500 },
hide:{ effect: "puff", duration: 1000 },
overlay: true,
draggable: true,
open: function(){
$.ajax({
url: "/user/home"
});
},
buttons: [
{
text: "ok",
click: function() {
$(this).dialog("close");
}
}
]
});
$("#dialog").load("detail.php", function() {
});
});
});
</script>
这是真的如果我写下控制器路由,在url ajax节?