스

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

· 2004-08-05 (목) 12:56:52 · 5539 · 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건
+
제목 글쓴이 날짜 조회
05-08-01 조회 3,943
05-07-24 조회 5,334
05-07-16 조회 5,432
bbbking
05-07-08 조회 3,246
bbbking
05-07-08 조회 3,066
bbbking
05-07-08 조회 8,695
05-07-01 조회 3,257
05-06-30 조회 4,629
05-06-24 조회 5,102
05-06-24 조회 3,340
05-06-21 조회 6,724
05-06-17 조회 4,544
05-06-15 조회 5,366
05-05-04 조회 3,598
05-04-11 조회 4,709
05-04-04 조회 5,125
05-04-02 조회 3,519
05-03-30 조회 3,220
05-03-15 조회 3,356
05-03-15 조회 3,039
05-03-14 조회 2,536
05-03-13 조회 2,743
05-03-13 조회 2,891
05-03-13 조회 2,725
05-03-13 조회 2,974
05-03-13 조회 4,563
05-03-13 조회 3,108
05-03-13 조회 2,537
05-03-13 조회 2,558
05-03-13 조회 2,421
05-03-13 조회 3,601
05-03-13 조회 2,635
05-03-13 조회 2,651
05-03-13 조회 3,131
05-03-13 조회 3,412
05-03-13 조회 3,007
05-03-13 조회 2,947
05-03-13 조회 3,637
05-03-13 조회 2,582
05-03-13 조회 4,077
05-03-13 조회 2,802
05-03-13 조회 3,166
05-03-13 조회 2,644
05-03-13 조회 3,826
05-03-13 조회 2,502
05-03-12 조회 4,829
05-02-04 조회 3,413
04-12-13 조회 7,019
04-12-01 조회 3,327
04-11-30 조회 3,398
04-11-30 조회 2,712
04-11-30 조회 2,609
04-11-30 조회 4,022
04-11-29 조회 3,757
04-11-28 조회 3,681
04-11-28 조회 3,975
04-11-28 조회 3,442
04-11-28 조회 2,966
04-11-28 조회 3,520
04-11-24 조회 3,177
04-11-23 조회 2,975
04-11-17 조회 2,961
04-11-12 조회 3,255
04-11-12 조회 2,604
04-11-10 조회 3,842
04-08-23 조회 4,284
04-08-09 조회 4,999
04-08-08 조회 4,701
04-08-05 조회 6,527
03-09-26 조회 5,179