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

· 2004-08-05 (목) 12:56:52 · 4709 · 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
감사합니다~
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
04-08-10 조회 5,814
04-08-10 조회 3,096
04-08-10 조회 6,075
07-10-24 조회 3,670
04-08-10 조회 3,641
04-08-10 조회 4,262
04-08-10 조회 3,835
04-08-10 조회 4,218
04-08-10 조회 6,661
04-08-10 조회 4,746
04-08-10 조회 6,966
04-08-09 조회 4,178
04-08-08 조회 2,632
04-08-08 조회 4,967
04-08-08 조회 3,419
04-08-08 조회 3,865
04-08-07 조회 3,565
04-08-06 조회 3,383
04-08-06 조회 3,958
04-08-05 조회 5,143
04-08-05 조회 4,710
04-08-05 조회 5,658
04-08-05 조회 4,066
04-08-05 조회 4,833
04-08-05 조회 4,710