Javascript将数据从包含的文件发布到父级
我有一个包含文件的index.asp文件Javascript将数据从包含的文件发布到父级,javascript,jquery,html,asp.net,Javascript,Jquery,Html,Asp.net,我有一个包含文件的index.asp文件 <!--#include file="/header.asp"--> <!--#include file="/middle.asp"--> <!--#include file="/center.asp"--> <!--#include file="/bottom.asp"--> <!--#include file="/footer.asp"--> 所以我需要从middle.asp(从index
<!--#include file="/header.asp"-->
<!--#include file="/middle.asp"-->
<!--#include file="/center.asp"-->
<!--#include file="/bottom.asp"-->
<!--#include file="/footer.asp"-->
所以我需要从middle.asp(从index.asp调用)将Post数据插入center.asp div
但是$(“.center”).html(数据)
不能这样做
这可能吗?如果将jQuery代码包含在内
$( document ).ready(){
});
该操作将在加载DOM后运行
function SendFiltered() {
$.ajax({
url: '/Filtered.asp',
type: 'POST',
data: "",
dataType: 'text',
success: function (data) {
$(".center").html(data)
}
});
};
$( document ).ready(){
});