|
|
|
14년 전
|
조회 1,776
|
|
|
|
14년 전
|
조회 2,454
|
|
|
|
14년 전
|
조회 3,567
|
|
|
|
14년 전
|
조회 2,804
|
|
|
|
14년 전
|
조회 2,872
|
|
|
|
14년 전
|
조회 2,320
|
|
|
|
14년 전
|
조회 2,114
|
|
|
|
14년 전
|
조회 1,998
|
|
|
|
14년 전
|
조회 1,774
|
|
|
|
14년 전
|
조회 1,266
|
|
|
|
14년 전
|
조회 2,201
|
|
|
|
14년 전
|
조회 5,279
|
|
|
|
14년 전
|
조회 2,168
|
|
|
|
14년 전
|
조회 1,947
|
|
|
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 1,674
|
|
|
선택이란
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,358
|
|
|
|
14년 전
|
조회 1,436
|
|
|
|
14년 전
|
조회 1,426
|
|
|
|
14년 전
|
조회 1,403
|
|
|
|
14년 전
|
조회 2,240
|
|
|
|
14년 전
|
조회 1,573
|
|
|
선택이란
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 1,424
|
|
|
|
14년 전
|
조회 1,759
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 2,274
|
|
|
|
14년 전
|
조회 1,865
|
|
|
|
14년 전
|
조회 4,325
|
|
|
선택이란
|
14년 전
|
조회 1,545
|
|
|
|
14년 전
|
조회 2,132
|
|
|
|
14년 전
|
조회 1,844
|
|
|
지운아빠
|
14년 전
|
조회 3,585
|
|
|
|
14년 전
|
조회 3,211
|
|
|
|
14년 전
|
조회 1,381
|
|
|
|
14년 전
|
조회 2,418
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 3,199
|
|
|
|
14년 전
|
조회 2,765
|
|
|
|
14년 전
|
조회 1,335
|
|
|
|
14년 전
|
조회 6,478
|
|
|
|
14년 전
|
조회 1,733
|
|
|
|
14년 전
|
조회 2,263
|
|
|
|
14년 전
|
조회 2,041
|
|
|
선택이란
|
14년 전
|
조회 2,025
|
|
|
|
14년 전
|
조회 1,971
|
|
|
|
14년 전
|
조회 1,980
|
|
|
|
14년 전
|
조회 1,809
|
|
|
|
14년 전
|
조회 2,153
|
|
|
|
14년 전
|
조회 2,535
|
|
|
|
14년 전
|
조회 1,563
|
|
|
|
14년 전
|
조회 1,972
|
|
|
|
14년 전
|
조회 2,958
|
|
|
|
14년 전
|
조회 2,817
|
|
|
관리자
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 2,263
|
|
|
관리자
|
14년 전
|
조회 4,762
|
|
|
|
14년 전
|
조회 1,498
|
|
|
|
14년 전
|
조회 3,473
|
|
|
|
14년 전
|
조회 2,228
|
|
|
선택이란
|
14년 전
|
조회 2,698
|
|
|
선택이란
|
14년 전
|
조회 1,900
|
|
|
|
14년 전
|
조회 1,660
|
|
|
똥싼너구리
|
14년 전
|
조회 1,668
|
|
|
관리자
|
14년 전
|
조회 1,788
|
|
|
|
14년 전
|
조회 1,867
|
|
|
|
14년 전
|
조회 2,768
|
|
|
|
14년 전
|
조회 4,006
|
|
|
관리자
|
14년 전
|
조회 3,082
|
|
|
|
14년 전
|
조회 1,800
|
|
|
|
14년 전
|
조회 2,376
|
|
|
|
14년 전
|
조회 2,637
|
|
|
|
14년 전
|
조회 1,428
|
|
|
|
14년 전
|
조회 2,695
|
|
|
|
14년 전
|
조회 3,913
|
|
|
선택이란
|
14년 전
|
조회 2,568
|
|
|
|
14년 전
|
조회 3,522
|
|
|
|
14년 전
|
조회 4,799
|
|
|
|
14년 전
|
조회 4,875
|
|
|
|
14년 전
|
조회 3,277
|
|
|
|
14년 전
|
조회 1,709
|
|
|
선택이란
|
14년 전
|
조회 2,021
|
|
|
|
14년 전
|
조회 4,825
|
|
|
|
14년 전
|
조회 3,142
|
|
|
|
14년 전
|
조회 2,296
|
|
|
|
14년 전
|
조회 4,686
|
|
|
|
14년 전
|
조회 3,331
|
|
|
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 3,339
|
|
|
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 1,711
|
|
|
|
14년 전
|
조회 2,576
|
|
|
|
14년 전
|
조회 2,183
|
|
|
|
14년 전
|
조회 2,440
|
|
|
|
14년 전
|
조회 1,966
|
|
|
|
14년 전
|
조회 2,988
|
|
|
|
14년 전
|
조회 1,652
|
|
|
|
14년 전
|
조회 1,665
|
댓글 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>
입니다 ㅎㅎ