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

· 2004-08-05 (목) 12:56:52 · 5537 · 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,598
12-01-11 조회 1.2만
12-01-10 조회 2,610
12-01-08 조회 3,307
12-01-05 조회 5,221
11-12-29 조회 2,829
11-12-27 조회 2,741
11-12-25 조회 2,883
11-12-22 조회 3,180
11-12-14 조회 2,766
11-12-12 조회 3,344
11-11-28 조회 3,299
10-10-19 조회 2,768
08-09-05 조회 3,674
08-09-05 조회 3,498
08-06-14 조회 3,245
08-04-22 조회 3,512
08-04-17 조회 3,526
07-10-03 조회 4,126
07-10-03 조회 3,535
07-10-03 조회 7,203
07-10-03 조회 4,401
07-10-03 조회 3,162
07-10-03 조회 2,759
07-10-02 조회 3,507
07-10-02 조회 3,024
07-09-27 조회 4,939
07-09-27 조회 3,758
06-09-26 조회 3,450
06-09-26 조회 4,659
06-09-22 조회 3,825
06-09-22 조회 3,428
06-09-22 조회 4,166
06-09-21 조회 4,130
06-08-18 조회 3,611
05-11-30 조회 4,668
05-07-15 조회 4,526
05-03-23 조회 4,580
05-03-14 조회 3,232
05-03-13 조회 2,614
04-08-05 조회 5,699