스

로컬에서 사용하는 자바스크립 HTML소스가져오기

· 2004-08-05 (목) 12:56:52 · 5540 · 4
삽질중 우연히 아래 소스를 발견해서 올립니다.
참고하세요.
<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개

- ㅝ~~~~~!

감사 합니다~! (__)끄빡
감쏴~!!
2007-06-08 (금) 14:45:44
감사합니다~
2011-06-18 (토) 10:18:53
감사합니다~
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,620
12-01-11 조회 1.2만
12-01-10 조회 2,615
12-01-08 조회 3,335
12-01-05 조회 5,226
11-12-29 조회 2,846
11-12-27 조회 2,746
11-12-25 조회 2,888
11-12-22 조회 3,193
11-12-14 조회 2,773
11-12-12 조회 3,365
11-11-28 조회 3,302
10-10-19 조회 2,771
08-09-05 조회 3,676
08-09-05 조회 3,502
08-06-14 조회 3,247
08-04-22 조회 3,519
08-04-17 조회 3,528
07-10-03 조회 4,129
07-10-03 조회 3,540
07-10-03 조회 7,210
07-10-03 조회 4,431
07-10-03 조회 3,174
07-10-03 조회 2,761
07-10-02 조회 3,508
07-10-02 조회 3,029
07-09-27 조회 4,946
07-09-27 조회 3,761
06-09-26 조회 3,455
06-09-26 조회 4,663
06-09-22 조회 3,829
06-09-22 조회 3,431
06-09-22 조회 4,170
06-09-21 조회 4,134
06-08-18 조회 3,615
05-11-30 조회 4,672
05-07-15 조회 4,527
05-03-23 조회 4,582
05-03-14 조회 3,233
05-03-13 조회 2,618
04-08-05 조회 5,702