|
|
|
14년 전
|
조회 1,917
|
|
|
|
14년 전
|
조회 2,603
|
|
|
|
14년 전
|
조회 3,700
|
|
|
|
14년 전
|
조회 2,952
|
|
|
|
14년 전
|
조회 3,026
|
|
|
|
14년 전
|
조회 2,478
|
|
|
|
14년 전
|
조회 2,256
|
|
|
|
14년 전
|
조회 2,151
|
|
|
|
14년 전
|
조회 1,913
|
|
|
|
14년 전
|
조회 1,415
|
|
|
|
14년 전
|
조회 2,326
|
|
|
|
14년 전
|
조회 5,430
|
|
|
|
14년 전
|
조회 2,304
|
|
|
|
14년 전
|
조회 2,073
|
|
|
|
14년 전
|
조회 1,570
|
|
|
|
14년 전
|
조회 1,804
|
|
|
선택이란
|
14년 전
|
조회 1,637
|
|
|
|
14년 전
|
조회 1,491
|
|
|
|
14년 전
|
조회 1,598
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 1,531
|
|
|
|
14년 전
|
조회 2,382
|
|
|
|
14년 전
|
조회 1,714
|
|
|
선택이란
|
14년 전
|
조회 1,583
|
|
|
|
14년 전
|
조회 1,508
|
|
|
|
14년 전
|
조회 1,593
|
|
|
|
14년 전
|
조회 1,888
|
|
|
|
14년 전
|
조회 1,799
|
|
|
|
14년 전
|
조회 2,405
|
|
|
|
14년 전
|
조회 2,003
|
|
|
|
14년 전
|
조회 4,471
|
|
|
선택이란
|
14년 전
|
조회 1,708
|
|
|
|
14년 전
|
조회 2,270
|
|
|
|
14년 전
|
조회 1,984
|
|
|
지운아빠
|
14년 전
|
조회 3,711
|
|
|
|
14년 전
|
조회 3,347
|
|
|
|
14년 전
|
조회 1,506
|
|
|
|
14년 전
|
조회 2,569
|
|
|
|
14년 전
|
조회 1,549
|
|
|
|
14년 전
|
조회 3,359
|
|
|
|
14년 전
|
조회 2,908
|
|
|
|
14년 전
|
조회 1,510
|
|
|
|
14년 전
|
조회 6,621
|
|
|
|
14년 전
|
조회 1,874
|
|
|
|
14년 전
|
조회 2,418
|
|
|
|
14년 전
|
조회 2,196
|
|
|
선택이란
|
14년 전
|
조회 2,088
|
|
|
|
14년 전
|
조회 2,106
|
|
|
|
14년 전
|
조회 2,103
|
|
|
|
14년 전
|
조회 1,961
|
|
|
|
14년 전
|
조회 2,305
|
|
|
|
14년 전
|
조회 2,677
|
|
|
|
14년 전
|
조회 1,704
|
|
|
|
14년 전
|
조회 2,092
|
|
|
|
14년 전
|
조회 3,108
|
|
|
|
14년 전
|
조회 2,972
|
|
|
관리자
|
14년 전
|
조회 1,952
|
|
|
|
14년 전
|
조회 2,421
|
|
|
관리자
|
14년 전
|
조회 4,918
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 3,630
|
|
|
|
14년 전
|
조회 2,367
|
|
|
선택이란
|
14년 전
|
조회 2,840
|
|
|
선택이란
|
14년 전
|
조회 2,057
|
|
|
|
14년 전
|
조회 1,819
|
|
|
똥싼너구리
|
14년 전
|
조회 1,830
|
|
|
관리자
|
14년 전
|
조회 1,963
|
|
|
|
14년 전
|
조회 2,042
|
|
|
|
14년 전
|
조회 2,934
|
|
|
|
14년 전
|
조회 4,159
|
|
|
관리자
|
14년 전
|
조회 3,229
|
|
|
|
14년 전
|
조회 1,947
|
|
|
|
14년 전
|
조회 2,527
|
|
|
|
14년 전
|
조회 2,778
|
|
|
|
14년 전
|
조회 1,590
|
|
|
|
14년 전
|
조회 2,844
|
|
|
|
14년 전
|
조회 4,069
|
|
|
선택이란
|
14년 전
|
조회 2,741
|
|
|
|
14년 전
|
조회 3,669
|
|
|
|
14년 전
|
조회 4,871
|
|
|
|
14년 전
|
조회 5,044
|
|
|
|
14년 전
|
조회 3,424
|
|
|
|
14년 전
|
조회 1,845
|
|
|
선택이란
|
14년 전
|
조회 2,187
|
|
|
|
14년 전
|
조회 4,973
|
|
|
|
14년 전
|
조회 3,292
|
|
|
|
14년 전
|
조회 2,440
|
|
|
|
14년 전
|
조회 4,839
|
|
|
|
14년 전
|
조회 3,472
|
|
|
|
14년 전
|
조회 1,583
|
|
|
|
14년 전
|
조회 3,476
|
|
|
|
14년 전
|
조회 1,606
|
|
|
|
14년 전
|
조회 1,861
|
|
|
|
14년 전
|
조회 2,717
|
|
|
|
14년 전
|
조회 2,346
|
|
|
|
14년 전
|
조회 2,580
|
|
|
|
14년 전
|
조회 2,124
|
|
|
|
14년 전
|
조회 3,137
|
|
|
|
14년 전
|
조회 1,793
|
|
|
|
14년 전
|
조회 1,810
|
댓글 3개
express.js 가 node에서 http를 쉽게 처리할수 있도록 해주는 라이브러리입니다.
app.get("/page/", function(req, res) {
console.log('request userid : ' + req.params.userid);
}
대충 이런식
현제 전송방식은
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=euc-kr" />
<title>Ajax Test</title>
<script language="Javascript">
/*http://blog.naver.com/ctlim2?Redirect=Log&logNo=50044001483*/
/**
* Ajax Call
* @param strURL : call cgi
* @param strFunction : callBack Function
* @param strArgument : argument
*/
function xmlhttpPost(strURL, strArgument, callFunction) {
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if(window.XMLHttpRequest) {
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else if(window.ActiveXObject) {
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open('GET', strURL, true);
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
self.xmlHttpReq.onreadystatechange = function() {
if(self.xmlHttpReq.readyState == 0) { // 아직 초기화 안됨
}
else if(self.xmlHttpReq.readyState == 1) { // 읽는 중
}
else if(self.xmlHttpReq.readyState == 2) { // 읽기 완료
}
else if(self.xmlHttpReq.readyState == 3) { // 작업 중
}
else if(self.xmlHttpReq.readyState == 4) { // 작업완료
callFunction(self.xmlHttpReq);
}
}
self.xmlHttpReq.send(strArgument);
}
/**
* callBack Json
*/
function callBackJson(in_Data){
// JSON 일 때
var arrayDoc = in_Data.responseText;
eval("var jsonData ="+arrayDoc);
//var text = jsonData['id'];
//document.getElementById("result").innerHTML = text;
document.getElementById("result").innerHTML = in_Data.responseText
}
/**
* Ajax Json을 호출 한다.
*/
function callJson()
{
var form = document.forms['f1'];
var id = form.id.value;
var a = form.a.value;
var b = form.b.value;
var id = encodeURIComponent(id);
var a = encodeURIComponent(a);
var b = encodeURIComponent(b);
xmlhttpPost('http://terrorboy.net:40000', "id="+id+"&a="+a+"&b="+b, callBackJson);
}
</script>
</head>
<body>
<form name="f1" accept-charset="">
id: <input id="id" name="id" type="text" value="id" /> <br />
a: <input id="a" name="a" type="text" value="a" /> <br />
b: <input id="b" name="b" type="text" value="b" /> <br />
<input value="Json" type="button" onclick="JavaScript:callJson()" />
<div id="result"></div>
</form>
</body>
</html>
입니다 ㅎㅎ