스

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

· 2004-08-05 (목) 12:56:52 · 5578 · 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건
+
제목 글쓴이 날짜 조회
06-05-31 조회 4,144
06-05-31 조회 4,366
06-05-30 조회 3,398
06-05-26 조회 4,498
06-05-26 조회 4,785
06-05-15 조회 4,517
06-05-14 조회 5,750
06-05-12 조회 3,187
06-05-11 조회 4,596
06-05-11 조회 2,743
06-05-11 조회 2,851
06-05-11 조회 2,573
06-05-11 조회 2,844
06-05-11 조회 2,431
06-05-11 조회 2,974
06-05-10 조회 3,459
06-05-09 조회 8,136
06-05-09 조회 3,354
06-05-09 조회 3,454
06-05-07 조회 3,935
06-05-07 조회 3,029
06-05-07 조회 3,659
06-04-29 조회 3,679
06-04-28 조회 4,573
06-04-25 조회 3,485
06-04-25 조회 3,771
06-04-25 조회 3,571
06-04-22 조회 3,214
06-04-13 조회 4,519
06-04-13 조회 4,382
06-04-09 조회 3,353
06-03-30 조회 4,780
06-03-24 조회 3,610
06-03-21 조회 3,599
06-03-15 조회 4,624
06-03-11 조회 3,230
06-03-03 조회 3,479
06-02-22 조회 3,282
06-01-27 조회 3,445
06-01-05 조회 3,525
05-12-30 조회 3,377
05-12-29 조회 3,873
bbbking
05-10-22 조회 5,325
05-08-19 조회 5,533
05-08-16 조회 3,566
05-07-13 조회 4,757
05-07-11 조회 3,897
05-07-01 조회 3,498
05-07-01 조회 3,107
05-07-01 조회 3,573
bbbking
05-06-30 조회 6,282
bbbking
05-06-16 조회 6,859
05-04-04 조회 6,389
05-03-13 조회 3,279
05-03-13 조회 2,347
05-03-13 조회 2,509
04-12-16 조회 5,810
04-11-29 조회 4,178
04-11-28 조회 3,982
04-11-28 조회 3,174
04-11-28 조회 3,866
04-11-28 조회 3,595
04-11-24 조회 3,032
04-11-12 조회 3,027
04-08-24 조회 5,308
04-08-10 조회 4,502
04-08-10 조회 5,107