|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 2,220
|
|
|
|
14년 전
|
조회 3,361
|
|
|
|
14년 전
|
조회 2,591
|
|
|
|
14년 전
|
조회 2,660
|
|
|
|
14년 전
|
조회 2,082
|
|
|
|
14년 전
|
조회 1,870
|
|
|
|
14년 전
|
조회 1,780
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 1,020
|
|
|
|
14년 전
|
조회 1,955
|
|
|
|
14년 전
|
조회 5,029
|
|
|
|
14년 전
|
조회 1,939
|
|
|
|
14년 전
|
조회 1,703
|
|
|
|
14년 전
|
조회 1,208
|
|
|
|
14년 전
|
조회 1,445
|
|
|
선택이란
|
14년 전
|
조회 1,243
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 1,192
|
|
|
|
14년 전
|
조회 1,217
|
|
|
|
14년 전
|
조회 1,164
|
|
|
|
14년 전
|
조회 2,009
|
|
|
|
14년 전
|
조회 1,330
|
|
|
선택이란
|
14년 전
|
조회 1,187
|
|
|
|
14년 전
|
조회 1,125
|
|
|
|
14년 전
|
조회 1,198
|
|
|
|
14년 전
|
조회 1,515
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 2,073
|
|
|
|
14년 전
|
조회 1,629
|
|
|
|
14년 전
|
조회 4,088
|
|
|
선택이란
|
14년 전
|
조회 1,297
|
|
|
|
14년 전
|
조회 1,895
|
|
|
|
14년 전
|
조회 1,600
|
|
|
지운아빠
|
14년 전
|
조회 3,404
|
|
|
|
14년 전
|
조회 3,013
|
|
|
|
14년 전
|
조회 1,158
|
|
|
|
14년 전
|
조회 2,166
|
|
|
|
14년 전
|
조회 1,194
|
|
|
|
14년 전
|
조회 2,941
|
|
|
|
14년 전
|
조회 2,567
|
|
|
|
14년 전
|
조회 1,096
|
|
|
|
14년 전
|
조회 6,286
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 2,067
|
|
|
|
14년 전
|
조회 1,811
|
|
|
선택이란
|
14년 전
|
조회 1,744
|
|
|
|
14년 전
|
조회 1,708
|
|
|
|
14년 전
|
조회 1,722
|
|
|
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 1,899
|
|
|
|
14년 전
|
조회 2,302
|
|
|
|
14년 전
|
조회 1,347
|
|
|
|
14년 전
|
조회 1,718
|
|
|
|
14년 전
|
조회 2,709
|
|
|
|
14년 전
|
조회 2,564
|
|
|
관리자
|
14년 전
|
조회 1,522
|
|
|
|
14년 전
|
조회 2,013
|
|
|
관리자
|
14년 전
|
조회 4,526
|
|
|
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 3,225
|
|
|
|
14년 전
|
조회 2,039
|
|
|
선택이란
|
14년 전
|
조회 2,439
|
|
|
선택이란
|
14년 전
|
조회 1,646
|
|
|
|
14년 전
|
조회 1,423
|
|
|
똥싼너구리
|
14년 전
|
조회 1,418
|
|
|
관리자
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 1,631
|
|
|
|
14년 전
|
조회 2,535
|
|
|
|
14년 전
|
조회 3,756
|
|
|
관리자
|
14년 전
|
조회 2,836
|
|
|
|
14년 전
|
조회 1,541
|
|
|
|
14년 전
|
조회 2,135
|
|
|
|
14년 전
|
조회 2,417
|
|
|
|
14년 전
|
조회 1,187
|
|
|
|
14년 전
|
조회 2,457
|
|
|
|
14년 전
|
조회 3,666
|
|
|
선택이란
|
14년 전
|
조회 2,347
|
|
|
|
14년 전
|
조회 3,261
|
|
|
|
14년 전
|
조회 4,541
|
|
|
|
14년 전
|
조회 4,617
|
|
|
|
14년 전
|
조회 3,026
|
|
|
|
14년 전
|
조회 1,507
|
|
|
선택이란
|
14년 전
|
조회 1,747
|
|
|
|
14년 전
|
조회 4,579
|
|
|
|
14년 전
|
조회 2,898
|
|
|
|
14년 전
|
조회 2,054
|
|
|
|
14년 전
|
조회 4,434
|
|
|
|
14년 전
|
조회 3,079
|
|
|
|
14년 전
|
조회 1,155
|
|
|
|
14년 전
|
조회 3,071
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 1,440
|
|
|
|
14년 전
|
조회 2,325
|
|
|
|
14년 전
|
조회 1,931
|
|
|
|
14년 전
|
조회 2,186
|
|
|
|
14년 전
|
조회 1,720
|
|
|
|
14년 전
|
조회 2,745
|
|
|
|
14년 전
|
조회 1,372
|
|
|
|
14년 전
|
조회 1,390
|
댓글 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>
입니다 ㅎㅎ