2
基本配置文件視圖來自index.cs.asp?Process=ViewB_Profile
。
當用戶點擊<a href="index.cs.asp?Process=EditB_Profile">edit profile</a>
時,將打開對話框來編輯基本配置文件。
但我想編輯窗體來替換基本的配置文件視圖數據。
我該怎麼做,有沒有插件?用編輯表格替換查看數據
非常感謝!
編輯!
<script type="text/javascript">
$(document).ready(function() {
$(function V_Basic_Profile() {
$.ajax({
type: "GET",
url: "content/profile/index.cs.asp?Process=ViewB_Profile",
success: function(data) {
$("#B_Profile").append(data);
},
error: function (data) {
$("#B_Profile").append('.');
}
});
});
$(function E_Basic_Profile() {
$.ajax({
type: "GET",
url: "content/profile/index.cs.asp?Process=ViewB_Profile",
success: function(data) {
$("#B_Profile").append(data);
},
error: function (data) {
$("#B_Profile").append('.');
}
});
});
});
我想過使用太多,但ID來拉來自外部網址... – Efe
這很好。只需在AJAX成功處理程序中填充表單html,然後切換配置文件數據div和表單。 – landons
你可以請檢查現在編輯的代碼,會工作嗎? – Efe