Develop
2013.04.23 16:02
[js] ajax를 이용해 외부문서 불러오기..
조회 수 6794 댓글 0
블루비에서 퍼온 샘플..
<html> <head> <title>http://www.blueb.co.kr</title> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <script> var please_wait = null; function open_url(url, target) { if ( ! document.getElementById) { return false; } if (please_wait != null) { document.getElementById(target).innerHTML = please_wait; } if (window.ActiveXObject) { link = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { link = new XMLHttpRequest(); } if (link == undefined) { return false; } link.onreadystatechange = function() { response(url, target); } link.open("GET", url, true); link.send(null); } function response(url, target) { if (link.readyState == 4) { document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "에러코드: " + link.status; } } function set_loading_message(msg) { please_wait = msg; } </script> </head> <body> <table> <tr> <td valign=top width=150> <H5>외부문서 불러오기</H5> <a href="javascript:void(0)" onclick="open_url( 'http://blueb.co.kr/rss_xml.php?table=community_QNA', 'my_site_content');">Go to page 1</a><br> <a href="javascript:void(0)" onclick="open_url( 'http://blueb.co.kr/rss_xml.php?table=community_tipntech', 'my_site_content');">Go to page 2</a><br> <a href="javascript:void(0)" onclick="open_url('http://blueb.co.kr/rss_xml.php?table=JS_50', 'my_site_content');">Go to page 3</a><br> <a href="javascript:void(0)" onclick="open_url('http://blueb.co.kr/rss_xml.php?table=JS_02', 'my_site_content');">Go to page 4</a><br> <a href="javascript:void(0)" onclick="open_url('링크없다.html', 'my_site_content');">Broken Link</a><br> </td> <td valign=top> <divs id="my_site_content"></divs> </td> </tr> </table>
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
609 | Develop | [iOS] Xcode 불필요한 캐시 삭제하기 | hooni | 2021.10.12 | 1792 |
608 | Develop | [ios] Xcode를 사용해서 Static Library 만들기 (시뮬레이터 + 디바이스) | hooni | 2015.01.03 | 3281 |
607 | Develop | [ios] XCode에서 Provisioning Profile 여러개 중복될 때 | hooni | 2014.06.26 | 2816 |
606 | Develop | [ios] Xcode에서 특정 파일만 ARC 따로 설정하는 방법 | hooni | 2017.03.29 | 948 |
605 | Develop | [ios] Xcode의 디버그 모드에서 콜스택 | hooni | 2015.01.03 | 1004 |
604 | Develop | [ios] 간단한 방법으로 OS버전 확인하기. | hooni | 2013.09.24 | 13311 |
603 | Develop | [ios] 개발 기초 가이드 링크.. | hooni | 2013.04.23 | 31366 |
602 | Develop | [ios] 구분자로 문자열 자르기 (split) | hooni | 2013.04.23 | 26273 |
601 | Develop | [ios] 기본 네비게이션바의 타이틀, back버튼 위치와 속성 변경 | hooni | 2016.05.16 | 2089 |
600 | Develop | [ios] 네트워크 인디케이터(NetworkActivityIndicator) 작동 | hooni | 2014.01.24 | 12490 |
599 | Develop | [ios] 동영상 플레이어 샘플 (for Local File) | hooni | 2017.02.07 | 1075 |
598 | Develop | [ios] 동영상 플레이어 샘플 (for PIP Player) | hooni | 2017.03.15 | 1263 |