|
|
|
14년 전
|
조회 1,523
|
|
|
|
14년 전
|
조회 2,173
|
|
|
|
14년 전
|
조회 3,307
|
|
|
|
14년 전
|
조회 2,541
|
|
|
|
14년 전
|
조회 2,607
|
|
|
|
14년 전
|
조회 2,038
|
|
|
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 1,728
|
|
|
|
14년 전
|
조회 1,495
|
|
|
|
14년 전
|
조회 984
|
|
|
|
14년 전
|
조회 1,905
|
|
|
|
14년 전
|
조회 4,976
|
|
|
|
14년 전
|
조회 1,891
|
|
|
|
14년 전
|
조회 1,650
|
|
|
|
14년 전
|
조회 1,157
|
|
|
|
14년 전
|
조회 1,385
|
|
|
선택이란
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 1,085
|
|
|
|
14년 전
|
조회 1,138
|
|
|
|
14년 전
|
조회 1,152
|
|
|
|
14년 전
|
조회 1,107
|
|
|
|
14년 전
|
조회 1,955
|
|
|
|
14년 전
|
조회 1,273
|
|
|
선택이란
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 1,073
|
|
|
|
14년 전
|
조회 1,143
|
|
|
|
14년 전
|
조회 1,458
|
|
|
|
14년 전
|
조회 1,362
|
|
|
|
14년 전
|
조회 2,042
|
|
|
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 4,023
|
|
|
선택이란
|
14년 전
|
조회 1,246
|
|
|
|
14년 전
|
조회 1,857
|
|
|
|
14년 전
|
조회 1,551
|
|
|
지운아빠
|
14년 전
|
조회 3,366
|
|
|
|
14년 전
|
조회 2,980
|
|
|
|
14년 전
|
조회 1,112
|
|
|
|
14년 전
|
조회 2,106
|
|
|
|
14년 전
|
조회 1,135
|
|
|
|
14년 전
|
조회 2,879
|
|
|
|
14년 전
|
조회 2,527
|
|
|
|
14년 전
|
조회 1,056
|
|
|
|
14년 전
|
조회 6,248
|
|
|
|
14년 전
|
조회 1,432
|
|
|
|
14년 전
|
조회 2,030
|
|
|
|
14년 전
|
조회 1,757
|
|
|
선택이란
|
14년 전
|
조회 1,729
|
|
|
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 1,844
|
|
|
|
14년 전
|
조회 2,247
|
|
|
|
14년 전
|
조회 1,284
|
|
|
|
14년 전
|
조회 1,669
|
|
|
|
14년 전
|
조회 2,655
|
|
|
|
14년 전
|
조회 2,521
|
|
|
관리자
|
14년 전
|
조회 1,481
|
|
|
|
14년 전
|
조회 1,959
|
|
|
관리자
|
14년 전
|
조회 4,470
|
|
|
|
14년 전
|
조회 1,199
|
|
|
|
14년 전
|
조회 3,180
|
|
|
|
14년 전
|
조회 1,996
|
|
|
선택이란
|
14년 전
|
조회 2,396
|
|
|
선택이란
|
14년 전
|
조회 1,586
|
|
|
|
14년 전
|
조회 1,369
|
|
|
똥싼너구리
|
14년 전
|
조회 1,381
|
|
|
관리자
|
14년 전
|
조회 1,502
|
|
|
|
14년 전
|
조회 1,573
|
|
|
|
14년 전
|
조회 2,484
|
|
|
|
14년 전
|
조회 3,712
|
|
|
관리자
|
14년 전
|
조회 2,783
|
|
|
|
14년 전
|
조회 1,489
|
|
|
|
14년 전
|
조회 2,093
|
|
|
|
14년 전
|
조회 2,366
|
|
|
|
14년 전
|
조회 1,133
|
|
|
|
14년 전
|
조회 2,415
|
|
|
|
14년 전
|
조회 3,615
|
|
|
선택이란
|
14년 전
|
조회 2,296
|
|
|
|
14년 전
|
조회 3,219
|
|
|
|
14년 전
|
조회 4,528
|
|
|
|
14년 전
|
조회 4,555
|
|
|
|
14년 전
|
조회 2,962
|
|
|
|
14년 전
|
조회 1,476
|
|
|
선택이란
|
14년 전
|
조회 1,693
|
|
|
|
14년 전
|
조회 4,525
|
|
|
|
14년 전
|
조회 2,851
|
|
|
|
14년 전
|
조회 2,003
|
|
|
|
14년 전
|
조회 4,382
|
|
|
|
14년 전
|
조회 3,032
|
|
|
|
14년 전
|
조회 1,110
|
|
|
|
14년 전
|
조회 3,013
|
|
|
|
14년 전
|
조회 1,165
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 2,270
|
|
|
|
14년 전
|
조회 1,879
|
|
|
|
14년 전
|
조회 2,136
|
|
|
|
14년 전
|
조회 1,664
|
|
|
|
14년 전
|
조회 2,705
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 1,334
|
댓글 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>
입니다 ㅎㅎ