|
|
|
14년 전
|
조회 1,507
|
|
|
|
14년 전
|
조회 2,159
|
|
|
|
14년 전
|
조회 3,290
|
|
|
|
14년 전
|
조회 2,523
|
|
|
|
14년 전
|
조회 2,594
|
|
|
|
14년 전
|
조회 2,025
|
|
|
|
14년 전
|
조회 1,805
|
|
|
|
14년 전
|
조회 1,718
|
|
|
|
14년 전
|
조회 1,474
|
|
|
|
14년 전
|
조회 969
|
|
|
|
14년 전
|
조회 1,894
|
|
|
|
14년 전
|
조회 4,958
|
|
|
|
14년 전
|
조회 1,868
|
|
|
|
14년 전
|
조회 1,636
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,374
|
|
|
선택이란
|
14년 전
|
조회 1,162
|
|
|
|
14년 전
|
조회 1,071
|
|
|
|
14년 전
|
조회 1,129
|
|
|
|
14년 전
|
조회 1,138
|
|
|
|
14년 전
|
조회 1,094
|
|
|
|
14년 전
|
조회 1,943
|
|
|
|
14년 전
|
조회 1,262
|
|
|
선택이란
|
14년 전
|
조회 1,121
|
|
|
|
14년 전
|
조회 1,060
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 1,441
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 2,032
|
|
|
|
14년 전
|
조회 1,560
|
|
|
|
14년 전
|
조회 4,011
|
|
|
선택이란
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 1,846
|
|
|
|
14년 전
|
조회 1,528
|
|
|
지운아빠
|
14년 전
|
조회 3,358
|
|
|
|
14년 전
|
조회 2,965
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 2,098
|
|
|
|
14년 전
|
조회 1,112
|
|
|
|
14년 전
|
조회 2,865
|
|
|
|
14년 전
|
조회 2,511
|
|
|
|
14년 전
|
조회 1,039
|
|
|
|
14년 전
|
조회 6,235
|
|
|
|
14년 전
|
조회 1,416
|
|
|
|
14년 전
|
조회 2,019
|
|
|
|
14년 전
|
조회 1,742
|
|
|
선택이란
|
14년 전
|
조회 1,716
|
|
|
|
14년 전
|
조회 1,653
|
|
|
|
14년 전
|
조회 1,650
|
|
|
|
14년 전
|
조회 1,456
|
|
|
|
14년 전
|
조회 1,830
|
|
|
|
14년 전
|
조회 2,228
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 1,652
|
|
|
|
14년 전
|
조회 2,641
|
|
|
|
14년 전
|
조회 2,510
|
|
|
관리자
|
14년 전
|
조회 1,467
|
|
|
|
14년 전
|
조회 1,948
|
|
|
관리자
|
14년 전
|
조회 4,455
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 3,167
|
|
|
|
14년 전
|
조회 1,976
|
|
|
선택이란
|
14년 전
|
조회 2,379
|
|
|
선택이란
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 1,361
|
|
|
똥싼너구리
|
14년 전
|
조회 1,359
|
|
|
관리자
|
14년 전
|
조회 1,491
|
|
|
|
14년 전
|
조회 1,561
|
|
|
|
14년 전
|
조회 2,471
|
|
|
|
14년 전
|
조회 3,701
|
|
|
관리자
|
14년 전
|
조회 2,768
|
|
|
|
14년 전
|
조회 1,474
|
|
|
|
14년 전
|
조회 2,077
|
|
|
|
14년 전
|
조회 2,357
|
|
|
|
14년 전
|
조회 1,119
|
|
|
|
14년 전
|
조회 2,398
|
|
|
|
14년 전
|
조회 3,598
|
|
|
선택이란
|
14년 전
|
조회 2,286
|
|
|
|
14년 전
|
조회 3,205
|
|
|
|
14년 전
|
조회 4,522
|
|
|
|
14년 전
|
조회 4,541
|
|
|
|
14년 전
|
조회 2,940
|
|
|
|
14년 전
|
조회 1,457
|
|
|
선택이란
|
14년 전
|
조회 1,676
|
|
|
|
14년 전
|
조회 4,509
|
|
|
|
14년 전
|
조회 2,835
|
|
|
|
14년 전
|
조회 1,986
|
|
|
|
14년 전
|
조회 4,367
|
|
|
|
14년 전
|
조회 3,021
|
|
|
|
14년 전
|
조회 1,095
|
|
|
|
14년 전
|
조회 3,003
|
|
|
|
14년 전
|
조회 1,151
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 2,256
|
|
|
|
14년 전
|
조회 1,868
|
|
|
|
14년 전
|
조회 2,128
|
|
|
|
14년 전
|
조회 1,644
|
|
|
|
14년 전
|
조회 2,691
|
|
|
|
14년 전
|
조회 1,314
|
|
|
|
14년 전
|
조회 1,320
|
댓글 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>
입니다 ㅎㅎ