이 사이트 (newsfiber.com)의 위젯을 사용하고 있습니다. 위젯은 사용해야하는 $ .ajax()를 사용하여로드하지 않습니다. 나는 그 (것)들에게서 도움을 얻을 수 없기 때문에 나는 여기에서 배치하고있다. 아래 샘플jquery를 사용하여 위젯을로드하는 방법
$("#link").click(function(){
$.ajax({
type: "POST",
url: widget.php,
data: info,
success: function(dd){
$("#mydiv").html(dd);
}
});
});
widget.php 문서
% 2 층 % 2F & N = (ENG)에서 코드 및 Y = "> 여기<div name="_dsnnginf_634080201465X579_" id="_dsnnginf_634080201465X579_" style="font-weight: 400; text-align: left; padding: 0.2em; background-color: #E9E9F0; font-size: 95%; font-family: Georgia,Palatino,Arial,Times,Times New Roman,serif;">
<a style="text-decoration: none; color: #0000EE;" href="http://www.newsfiber.com/p/s/h?v=C%2FSport%2FComplex+Coordination%2F&n=eng&y=" target="_blank">
Sport/Complex Coordination
</a> at
<a style="text-decoration: none; color: #0000EE;" href="http://www.newsfiber.com/" target="_blank">
www.newsfiber.com
</a>
</div>
click 이벤트는 $ (document) .ready() 안에 있습니다. 줄 "data : info"는 $ .ajax()에 의해 widget.php 파일로 보내진 정보이며 xampp (localhost)로 현재 작업 중입니다 – user3886042
여기 샘플 js [fiddle] (http : // jsfiddle.net/oqybdu9p/2/) – user3886042