我有一個jQuery UI選項卡的問題。詳細地說,我有加載ajax的標籤,我的問題是我想加載頁面內的頁面鏈接,但我無法做到。jQuery UI選項卡問題加載鏈接標籤
這是我的網頁與標籤的代碼:
<script>
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor){
$(anchor.hash).html(
"Could not load this tab");
}
}
});
});
</script>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Welcome</a></li>
<li><a href="customer.php">Customers</a></li>
<li><a href="subscribers.php">Subscribers</a></li>
<li><a href="subscription.php">Subscriptions</a></li>
</ul>
</div>
假設知道我已經加載標籤訂閱。該subscription.php有一個鏈接到另一個頁面,我想加載在同一個標籤。
我該如何讓它工作?
只是好奇,是不是更容易在頁面中包含頁面內容的iframe,然後正常的錨鏈接行爲將工作? – 2011-08-26 06:27:24