|
|
|
14년 전
|
조회 1,798
|
|
|
|
14년 전
|
조회 2,488
|
|
|
|
14년 전
|
조회 3,592
|
|
|
|
14년 전
|
조회 2,833
|
|
|
|
14년 전
|
조회 2,900
|
|
|
|
14년 전
|
조회 2,349
|
|
|
|
14년 전
|
조회 2,149
|
|
|
|
14년 전
|
조회 2,021
|
|
|
|
14년 전
|
조회 1,797
|
|
|
|
14년 전
|
조회 1,294
|
|
|
|
14년 전
|
조회 2,215
|
|
|
|
14년 전
|
조회 5,312
|
|
|
|
14년 전
|
조회 2,186
|
|
|
|
14년 전
|
조회 1,966
|
|
|
|
14년 전
|
조회 1,455
|
|
|
|
14년 전
|
조회 1,694
|
|
|
선택이란
|
14년 전
|
조회 1,494
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,446
|
|
|
|
14년 전
|
조회 1,422
|
|
|
|
14년 전
|
조회 2,269
|
|
|
|
14년 전
|
조회 1,600
|
|
|
선택이란
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 1,459
|
|
|
|
14년 전
|
조회 1,783
|
|
|
|
14년 전
|
조회 1,705
|
|
|
|
14년 전
|
조회 2,307
|
|
|
|
14년 전
|
조회 1,887
|
|
|
|
14년 전
|
조회 4,346
|
|
|
선택이란
|
14년 전
|
조회 1,570
|
|
|
|
14년 전
|
조회 2,153
|
|
|
|
14년 전
|
조회 1,869
|
|
|
지운아빠
|
14년 전
|
조회 3,605
|
|
|
|
14년 전
|
조회 3,235
|
|
|
|
14년 전
|
조회 1,406
|
|
|
|
14년 전
|
조회 2,435
|
|
|
|
14년 전
|
조회 1,433
|
|
|
|
14년 전
|
조회 3,224
|
|
|
|
14년 전
|
조회 2,795
|
|
|
|
14년 전
|
조회 1,363
|
|
|
|
14년 전
|
조회 6,504
|
|
|
|
14년 전
|
조회 1,750
|
|
|
|
14년 전
|
조회 2,289
|
|
|
|
14년 전
|
조회 2,067
|
|
|
선택이란
|
14년 전
|
조회 2,047
|
|
|
|
14년 전
|
조회 1,995
|
|
|
|
14년 전
|
조회 2,000
|
|
|
|
14년 전
|
조회 1,835
|
|
|
|
14년 전
|
조회 2,177
|
|
|
|
14년 전
|
조회 2,559
|
|
|
|
14년 전
|
조회 1,585
|
|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 2,988
|
|
|
|
14년 전
|
조회 2,841
|
|
|
관리자
|
14년 전
|
조회 1,843
|
|
|
|
14년 전
|
조회 2,291
|
|
|
관리자
|
14년 전
|
조회 4,790
|
|
|
|
14년 전
|
조회 1,523
|
|
|
|
14년 전
|
조회 3,499
|
|
|
|
14년 전
|
조회 2,254
|
|
|
선택이란
|
14년 전
|
조회 2,721
|
|
|
선택이란
|
14년 전
|
조회 1,926
|
|
|
|
14년 전
|
조회 1,682
|
|
|
똥싼너구리
|
14년 전
|
조회 1,696
|
|
|
관리자
|
14년 전
|
조회 1,823
|
|
|
|
14년 전
|
조회 1,890
|
|
|
|
14년 전
|
조회 2,795
|
|
|
|
14년 전
|
조회 4,024
|
|
|
관리자
|
14년 전
|
조회 3,101
|
|
|
|
14년 전
|
조회 1,822
|
|
|
|
14년 전
|
조회 2,395
|
|
|
|
14년 전
|
조회 2,652
|
|
|
|
14년 전
|
조회 1,456
|
|
|
|
14년 전
|
조회 2,713
|
|
|
|
14년 전
|
조회 3,943
|
|
|
선택이란
|
14년 전
|
조회 2,592
|
|
|
|
14년 전
|
조회 3,540
|
|
|
|
14년 전
|
조회 4,827
|
|
|
|
14년 전
|
조회 4,901
|
|
|
|
14년 전
|
조회 3,307
|
|
|
|
14년 전
|
조회 1,733
|
|
|
선택이란
|
14년 전
|
조회 2,046
|
|
|
|
14년 전
|
조회 4,848
|
|
|
|
14년 전
|
조회 3,163
|
|
|
|
14년 전
|
조회 2,318
|
|
|
|
14년 전
|
조회 4,710
|
|
|
|
14년 전
|
조회 3,359
|
|
|
|
14년 전
|
조회 1,456
|
|
|
|
14년 전
|
조회 3,364
|
|
|
|
14년 전
|
조회 1,485
|
|
|
|
14년 전
|
조회 1,742
|
|
|
|
14년 전
|
조회 2,600
|
|
|
|
14년 전
|
조회 2,217
|
|
|
|
14년 전
|
조회 2,464
|
|
|
|
14년 전
|
조회 1,993
|
|
|
|
14년 전
|
조회 3,016
|
|
|
|
14년 전
|
조회 1,681
|
|
|
|
14년 전
|
조회 1,695
|
댓글 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>
입니다 ㅎㅎ