|
|
|
14년 전
|
조회 1,962
|
|
|
|
14년 전
|
조회 2,656
|
|
|
|
14년 전
|
조회 3,749
|
|
|
|
14년 전
|
조회 3,006
|
|
|
|
14년 전
|
조회 3,078
|
|
|
|
14년 전
|
조회 2,516
|
|
|
|
14년 전
|
조회 2,299
|
|
|
|
14년 전
|
조회 2,193
|
|
|
|
14년 전
|
조회 1,958
|
|
|
|
14년 전
|
조회 1,464
|
|
|
|
14년 전
|
조회 2,370
|
|
|
|
14년 전
|
조회 5,479
|
|
|
|
14년 전
|
조회 2,357
|
|
|
|
14년 전
|
조회 2,123
|
|
|
|
14년 전
|
조회 1,611
|
|
|
|
14년 전
|
조회 1,848
|
|
|
선택이란
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 1,536
|
|
|
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 1,608
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 2,428
|
|
|
|
14년 전
|
조회 1,758
|
|
|
선택이란
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 1,555
|
|
|
|
14년 전
|
조회 1,630
|
|
|
|
14년 전
|
조회 1,938
|
|
|
|
14년 전
|
조회 1,841
|
|
|
|
14년 전
|
조회 2,445
|
|
|
|
14년 전
|
조회 2,055
|
|
|
|
14년 전
|
조회 4,516
|
|
|
선택이란
|
14년 전
|
조회 1,752
|
|
|
|
14년 전
|
조회 2,309
|
|
|
|
14년 전
|
조회 2,023
|
|
|
지운아빠
|
14년 전
|
조회 3,756
|
|
|
|
14년 전
|
조회 3,395
|
|
|
|
14년 전
|
조회 1,551
|
|
|
|
14년 전
|
조회 2,619
|
|
|
|
14년 전
|
조회 1,589
|
|
|
|
14년 전
|
조회 3,407
|
|
|
|
14년 전
|
조회 2,941
|
|
|
|
14년 전
|
조회 1,555
|
|
|
|
14년 전
|
조회 6,665
|
|
|
|
14년 전
|
조회 1,916
|
|
|
|
14년 전
|
조회 2,455
|
|
|
|
14년 전
|
조회 2,241
|
|
|
선택이란
|
14년 전
|
조회 2,111
|
|
|
|
14년 전
|
조회 2,152
|
|
|
|
14년 전
|
조회 2,156
|
|
|
|
14년 전
|
조회 2,022
|
|
|
|
14년 전
|
조회 2,353
|
|
|
|
14년 전
|
조회 2,732
|
|
|
|
14년 전
|
조회 1,760
|
|
|
|
14년 전
|
조회 2,146
|
|
|
|
14년 전
|
조회 3,164
|
|
|
|
14년 전
|
조회 3,044
|
|
|
관리자
|
14년 전
|
조회 2,008
|
|
|
|
14년 전
|
조회 2,482
|
|
|
관리자
|
14년 전
|
조회 4,973
|
|
|
|
14년 전
|
조회 1,709
|
|
|
|
14년 전
|
조회 3,690
|
|
|
|
14년 전
|
조회 2,423
|
|
|
선택이란
|
14년 전
|
조회 2,896
|
|
|
선택이란
|
14년 전
|
조회 2,105
|
|
|
|
14년 전
|
조회 1,873
|
|
|
똥싼너구리
|
14년 전
|
조회 1,892
|
|
|
관리자
|
14년 전
|
조회 2,024
|
|
|
|
14년 전
|
조회 2,096
|
|
|
|
14년 전
|
조회 2,998
|
|
|
|
14년 전
|
조회 4,215
|
|
|
관리자
|
14년 전
|
조회 3,286
|
|
|
|
14년 전
|
조회 2,001
|
|
|
|
14년 전
|
조회 2,585
|
|
|
|
14년 전
|
조회 2,834
|
|
|
|
14년 전
|
조회 1,647
|
|
|
|
14년 전
|
조회 2,893
|
|
|
|
14년 전
|
조회 4,132
|
|
|
선택이란
|
14년 전
|
조회 2,799
|
|
|
|
14년 전
|
조회 3,727
|
|
|
|
14년 전
|
조회 4,902
|
|
|
|
14년 전
|
조회 5,100
|
|
|
|
14년 전
|
조회 3,473
|
|
|
|
14년 전
|
조회 1,893
|
|
|
선택이란
|
14년 전
|
조회 2,225
|
|
|
|
14년 전
|
조회 5,018
|
|
|
|
14년 전
|
조회 3,333
|
|
|
|
14년 전
|
조회 2,490
|
|
|
|
14년 전
|
조회 4,884
|
|
|
|
14년 전
|
조회 3,525
|
|
|
|
14년 전
|
조회 1,629
|
|
|
|
14년 전
|
조회 3,540
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 1,920
|
|
|
|
14년 전
|
조회 2,768
|
|
|
|
14년 전
|
조회 2,395
|
|
|
|
14년 전
|
조회 2,626
|
|
|
|
14년 전
|
조회 2,171
|
|
|
|
14년 전
|
조회 3,177
|
|
|
|
14년 전
|
조회 1,844
|
|
|
|
14년 전
|
조회 1,866
|
댓글 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>
입니다 ㅎㅎ