0
나는 그것이 잘 작동 같은 페이지에 데이터를 표시하려고하지만 해당 페이지, 데이터를 새로운 창을 열고 추가
$.ajax({
async : true,
type : 'GET',
cache : false,
url : 'rest/getReport',
data : 'startDate=' + fromDate + '&endDate=' + toDate,
datatype : 'json',
success : function (data) {
that.viewReport(data);
},
complete : function (data) {
$('#search-box').find('img.waiting').css('visibility', 'hidden');
}
});
에 추가 데이터를 새 창/탭을 열 필요
이 코드는 코드 0 이하이 시도
<div id="Report" class="showDetails">
<div class="error-box no-view-error">There are no details in this period.</div>
<table></table>
</div>
당신은 팝업 컨텍스트에서'#Report의 table'를 찾을 필요가있다 : 당신은이 링크를 참조 할 수 있습니다
}. 보십시오 :'var popup = window.open ("details.htm"); table = $ ('# Report table', popup.document);' –