삽질중 우연히 아래 소스를 발견해서 올립니다.
참고하세요.
<html>
<head>
<title>::: 노글스 :::</title>
</head>
<body>
<input type=button onClick=chk() value="chk">
결과
<script>
var sHttp = new ActiveXObject("Microsoft.xmlhttp");
function httpGet(szURL) {
sHttp.open("get",szURL,false);
sHttp.setRequestHeader( "Content-type:", "application/x-www-form-urlencoded");
sHttp.setRequestHeader("Content-Encoding:", "euc-kr");
sHttp.onreadystatechange = onRetriveComplete;
try{
sHttp.send("code=tnt2");
}
catch(e) {
return ("Not exist");
}
if (sHttp.status > 200) {
return("not exist<br>");
} else
return(sHttp.responseText);
}
function onRetriveComplete() {
sHttp.onreadystatechange = noop; //re-entrant gate
if (sHttp.readyState == 4) {
}
}
function noop() {
return false;
}
function chk() {
getData=httpGet("http://www.phpschool.com/bbs2/inc_board.html");
document.noglsForm.test.value=getData;
}
</script>
<form name=noglsForm>
<textarea name=test rows=200 cols=200></textarea>
</form>
</body>
</html>
//////////php스쿨발췌~~<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
참고하세요.
<html>
<head>
<title>::: 노글스 :::</title>
</head>
<body>
<input type=button onClick=chk() value="chk">
결과
<script>
var sHttp = new ActiveXObject("Microsoft.xmlhttp");
function httpGet(szURL) {
sHttp.open("get",szURL,false);
sHttp.setRequestHeader( "Content-type:", "application/x-www-form-urlencoded");
sHttp.setRequestHeader("Content-Encoding:", "euc-kr");
sHttp.onreadystatechange = onRetriveComplete;
try{
sHttp.send("code=tnt2");
}
catch(e) {
return ("Not exist");
}
if (sHttp.status > 200) {
return("not exist<br>");
} else
return(sHttp.responseText);
}
function onRetriveComplete() {
sHttp.onreadystatechange = noop; //re-entrant gate
if (sHttp.readyState == 4) {
}
}
function noop() {
return false;
}
function chk() {
getData=httpGet("http://www.phpschool.com/bbs2/inc_board.html");
document.noglsForm.test.value=getData;
}
</script>
<form name=noglsForm>
<textarea name=test rows=200 cols=200></textarea>
</form>
</body>
</html>
//////////php스쿨발췌~~<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 10224 |
JavaScript
흔한 트위터,페이스북 퍼가기 자바스크립트
1
|
| 10217 |
Linux
리눅스 FFMPEG 자동실행소스(자작임)
6
|
| 17559 | |
| 10202 |
PHP
웹 소스 긁어오기
14
|
| 10201 | |
| 17557 | |
| 10198 |
Mobile
스마트폰에서 영상소스는?
2
|
| 19955 |
HTML
레이아웃이 비뚤합니다.
3
|
| 17556 | |
| 10195 |
정규표현식
정규식으로 html 태그 지우기
2
|
| 10192 |
jQuery
이미지 슬라이더 만들어보았습니다.
2
|
| 10190 |
jQuery
순차애니메이션 질문좀 드리겠습니다.
1
|
| 10189 | |
| 10186 | |
| 10185 | |
| 10182 | |
| 10180 | |
| 10178 |
node.js
node.js 0.8.2 번역 문서
1
|
| 10176 |
jQuery
CSS3처럼 이미지 라운딩 기능의 제이쿼리
1
|
| 10174 |
jQuery
이 플래시메뉴처럼 바꿔 만들려면...
1
|
| 10173 | |
| 10170 |
Mobile
가로 폭 문제
2
|
| 10168 |
MySQL
MySQL 테이블명 대소문자 구분안하기
1
|
| 10161 | |
| 10160 |
Flash
플래시 네비 관련
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기