|
|
|
14년 전
|
조회 1,903
|
|
|
|
14년 전
|
조회 2,589
|
|
|
|
14년 전
|
조회 3,685
|
|
|
|
14년 전
|
조회 2,937
|
|
|
|
14년 전
|
조회 3,007
|
|
|
|
14년 전
|
조회 2,461
|
|
|
|
14년 전
|
조회 2,245
|
|
|
|
14년 전
|
조회 2,137
|
|
|
|
14년 전
|
조회 1,898
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 2,306
|
|
|
|
14년 전
|
조회 5,416
|
|
|
|
14년 전
|
조회 2,285
|
|
|
|
14년 전
|
조회 2,058
|
|
|
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 1,790
|
|
|
선택이란
|
14년 전
|
조회 1,621
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 1,586
|
|
|
|
14년 전
|
조회 1,555
|
|
|
|
14년 전
|
조회 1,516
|
|
|
|
14년 전
|
조회 2,362
|
|
|
|
14년 전
|
조회 1,697
|
|
|
선택이란
|
14년 전
|
조회 1,570
|
|
|
|
14년 전
|
조회 1,492
|
|
|
|
14년 전
|
조회 1,572
|
|
|
|
14년 전
|
조회 1,880
|
|
|
|
14년 전
|
조회 1,789
|
|
|
|
14년 전
|
조회 2,389
|
|
|
|
14년 전
|
조회 1,987
|
|
|
|
14년 전
|
조회 4,453
|
|
|
선택이란
|
14년 전
|
조회 1,692
|
|
|
|
14년 전
|
조회 2,253
|
|
|
|
14년 전
|
조회 1,967
|
|
|
지운아빠
|
14년 전
|
조회 3,695
|
|
|
|
14년 전
|
조회 3,330
|
|
|
|
14년 전
|
조회 1,487
|
|
|
|
14년 전
|
조회 2,552
|
|
|
|
14년 전
|
조회 1,529
|
|
|
|
14년 전
|
조회 3,336
|
|
|
|
14년 전
|
조회 2,891
|
|
|
|
14년 전
|
조회 1,495
|
|
|
|
14년 전
|
조회 6,603
|
|
|
|
14년 전
|
조회 1,859
|
|
|
|
14년 전
|
조회 2,404
|
|
|
|
14년 전
|
조회 2,177
|
|
|
선택이란
|
14년 전
|
조회 2,076
|
|
|
|
14년 전
|
조회 2,087
|
|
|
|
14년 전
|
조회 2,098
|
|
|
|
14년 전
|
조회 1,939
|
|
|
|
14년 전
|
조회 2,287
|
|
|
|
14년 전
|
조회 2,663
|
|
|
|
14년 전
|
조회 1,690
|
|
|
|
14년 전
|
조회 2,080
|
|
|
|
14년 전
|
조회 3,087
|
|
|
|
14년 전
|
조회 2,955
|
|
|
관리자
|
14년 전
|
조회 1,939
|
|
|
|
14년 전
|
조회 2,401
|
|
|
관리자
|
14년 전
|
조회 4,897
|
|
|
|
14년 전
|
조회 1,622
|
|
|
|
14년 전
|
조회 3,606
|
|
|
|
14년 전
|
조회 2,355
|
|
|
선택이란
|
14년 전
|
조회 2,820
|
|
|
선택이란
|
14년 전
|
조회 2,032
|
|
|
|
14년 전
|
조회 1,807
|
|
|
똥싼너구리
|
14년 전
|
조회 1,802
|
|
|
관리자
|
14년 전
|
조회 1,938
|
|
|
|
14년 전
|
조회 2,017
|
|
|
|
14년 전
|
조회 2,910
|
|
|
|
14년 전
|
조회 4,133
|
|
|
관리자
|
14년 전
|
조회 3,204
|
|
|
|
14년 전
|
조회 1,928
|
|
|
|
14년 전
|
조회 2,505
|
|
|
|
14년 전
|
조회 2,759
|
|
|
|
14년 전
|
조회 1,574
|
|
|
|
14년 전
|
조회 2,823
|
|
|
|
14년 전
|
조회 4,050
|
|
|
선택이란
|
14년 전
|
조회 2,712
|
|
|
|
14년 전
|
조회 3,650
|
|
|
|
14년 전
|
조회 4,857
|
|
|
|
14년 전
|
조회 5,030
|
|
|
|
14년 전
|
조회 3,406
|
|
|
|
14년 전
|
조회 1,833
|
|
|
선택이란
|
14년 전
|
조회 2,169
|
|
|
|
14년 전
|
조회 4,952
|
|
|
|
14년 전
|
조회 3,267
|
|
|
|
14년 전
|
조회 2,416
|
|
|
|
14년 전
|
조회 4,818
|
|
|
|
14년 전
|
조회 3,456
|
|
|
|
14년 전
|
조회 1,563
|
|
|
|
14년 전
|
조회 3,452
|
|
|
|
14년 전
|
조회 1,593
|
|
|
|
14년 전
|
조회 1,842
|
|
|
|
14년 전
|
조회 2,700
|
|
|
|
14년 전
|
조회 2,332
|
|
|
|
14년 전
|
조회 2,561
|
|
|
|
14년 전
|
조회 2,102
|
|
|
|
14년 전
|
조회 3,116
|
|
|
|
14년 전
|
조회 1,778
|
|
|
|
14년 전
|
조회 1,793
|
댓글 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>
입니다 ㅎㅎ