|
|
|
14년 전
|
조회 1,909
|
|
|
|
14년 전
|
조회 2,592
|
|
|
|
14년 전
|
조회 3,693
|
|
|
|
14년 전
|
조회 2,942
|
|
|
|
14년 전
|
조회 3,015
|
|
|
|
14년 전
|
조회 2,467
|
|
|
|
14년 전
|
조회 2,249
|
|
|
|
14년 전
|
조회 2,142
|
|
|
|
14년 전
|
조회 1,903
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 2,311
|
|
|
|
14년 전
|
조회 5,421
|
|
|
|
14년 전
|
조회 2,290
|
|
|
|
14년 전
|
조회 2,065
|
|
|
|
14년 전
|
조회 1,563
|
|
|
|
14년 전
|
조회 1,795
|
|
|
선택이란
|
14년 전
|
조회 1,627
|
|
|
|
14년 전
|
조회 1,483
|
|
|
|
14년 전
|
조회 1,587
|
|
|
|
14년 전
|
조회 1,565
|
|
|
|
14년 전
|
조회 1,522
|
|
|
|
14년 전
|
조회 2,370
|
|
|
|
14년 전
|
조회 1,702
|
|
|
선택이란
|
14년 전
|
조회 1,571
|
|
|
|
14년 전
|
조회 1,499
|
|
|
|
14년 전
|
조회 1,577
|
|
|
|
14년 전
|
조회 1,882
|
|
|
|
14년 전
|
조회 1,791
|
|
|
|
14년 전
|
조회 2,393
|
|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 4,458
|
|
|
선택이란
|
14년 전
|
조회 1,698
|
|
|
|
14년 전
|
조회 2,259
|
|
|
|
14년 전
|
조회 1,972
|
|
|
지운아빠
|
14년 전
|
조회 3,700
|
|
|
|
14년 전
|
조회 3,333
|
|
|
|
14년 전
|
조회 1,495
|
|
|
|
14년 전
|
조회 2,560
|
|
|
|
14년 전
|
조회 1,538
|
|
|
|
14년 전
|
조회 3,348
|
|
|
|
14년 전
|
조회 2,898
|
|
|
|
14년 전
|
조회 1,505
|
|
|
|
14년 전
|
조회 6,611
|
|
|
|
14년 전
|
조회 1,862
|
|
|
|
14년 전
|
조회 2,411
|
|
|
|
14년 전
|
조회 2,180
|
|
|
선택이란
|
14년 전
|
조회 2,081
|
|
|
|
14년 전
|
조회 2,092
|
|
|
|
14년 전
|
조회 2,099
|
|
|
|
14년 전
|
조회 1,945
|
|
|
|
14년 전
|
조회 2,293
|
|
|
|
14년 전
|
조회 2,667
|
|
|
|
14년 전
|
조회 1,696
|
|
|
|
14년 전
|
조회 2,082
|
|
|
|
14년 전
|
조회 3,098
|
|
|
|
14년 전
|
조회 2,963
|
|
|
관리자
|
14년 전
|
조회 1,943
|
|
|
|
14년 전
|
조회 2,407
|
|
|
관리자
|
14년 전
|
조회 4,903
|
|
|
|
14년 전
|
조회 1,633
|
|
|
|
14년 전
|
조회 3,614
|
|
|
|
14년 전
|
조회 2,357
|
|
|
선택이란
|
14년 전
|
조회 2,826
|
|
|
선택이란
|
14년 전
|
조회 2,042
|
|
|
|
14년 전
|
조회 1,808
|
|
|
똥싼너구리
|
14년 전
|
조회 1,812
|
|
|
관리자
|
14년 전
|
조회 1,942
|
|
|
|
14년 전
|
조회 2,023
|
|
|
|
14년 전
|
조회 2,919
|
|
|
|
14년 전
|
조회 4,145
|
|
|
관리자
|
14년 전
|
조회 3,216
|
|
|
|
14년 전
|
조회 1,936
|
|
|
|
14년 전
|
조회 2,518
|
|
|
|
14년 전
|
조회 2,770
|
|
|
|
14년 전
|
조회 1,580
|
|
|
|
14년 전
|
조회 2,829
|
|
|
|
14년 전
|
조회 4,058
|
|
|
선택이란
|
14년 전
|
조회 2,723
|
|
|
|
14년 전
|
조회 3,657
|
|
|
|
14년 전
|
조회 4,865
|
|
|
|
14년 전
|
조회 5,040
|
|
|
|
14년 전
|
조회 3,414
|
|
|
|
14년 전
|
조회 1,838
|
|
|
선택이란
|
14년 전
|
조회 2,177
|
|
|
|
14년 전
|
조회 4,960
|
|
|
|
14년 전
|
조회 3,279
|
|
|
|
14년 전
|
조회 2,426
|
|
|
|
14년 전
|
조회 4,826
|
|
|
|
14년 전
|
조회 3,463
|
|
|
|
14년 전
|
조회 1,566
|
|
|
|
14년 전
|
조회 3,461
|
|
|
|
14년 전
|
조회 1,596
|
|
|
|
14년 전
|
조회 1,851
|
|
|
|
14년 전
|
조회 2,708
|
|
|
|
14년 전
|
조회 2,337
|
|
|
|
14년 전
|
조회 2,572
|
|
|
|
14년 전
|
조회 2,111
|
|
|
|
14년 전
|
조회 3,126
|
|
|
|
14년 전
|
조회 1,784
|
|
|
|
14년 전
|
조회 1,798
|
댓글 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>
입니다 ㅎㅎ