【发布时间】:2012-01-11 05:03:36
【问题描述】:
我在一个动作中有以下代码
render ( template: 'partial_list_template', model: [messageList: entries, totalFound: count, activeUILink: "all_mgs_link", termFreqs: null])
我在gsp页面中有如下代码
$j("#filterUpdate").click(function(event){
var form = $j('#flags');
new Ajax.Request('/tabulae/webForm/filter',
{
onSuccess:function(resp){
console.log(resp.responseText);
console.log($j('#filterResults'))
$j('#filterResults').remove()
$j('#filterResults').innerHTML(resp.responseText)
},
onError: function(resp) {
alert("Error:" + resp.toJSON());
return;
},
asynchronous:true,
evalScripts:true,
method:'GET',
parameters:form.serialize()
});
});
即使我在控制台日志中看到了 html 输出。我在添加此内容的元素中看不到 html 输出。任何想法为什么?
【问题讨论】: