|
|
|
14년 전
|
조회 1,736
|
|
|
|
14년 전
|
조회 2,408
|
|
|
|
14년 전
|
조회 3,509
|
|
|
|
14년 전
|
조회 2,735
|
|
|
|
14년 전
|
조회 2,826
|
|
|
|
14년 전
|
조회 2,258
|
|
|
|
14년 전
|
조회 2,051
|
|
|
|
14년 전
|
조회 1,944
|
|
|
|
14년 전
|
조회 1,720
|
|
|
|
14년 전
|
조회 1,200
|
|
|
|
14년 전
|
조회 2,148
|
|
|
|
14년 전
|
조회 5,230
|
|
|
|
14년 전
|
조회 2,122
|
|
|
|
14년 전
|
조회 1,895
|
|
|
|
14년 전
|
조회 1,386
|
|
|
|
14년 전
|
조회 1,624
|
|
|
선택이란
|
14년 전
|
조회 1,414
|
|
|
|
14년 전
|
조회 1,304
|
|
|
|
14년 전
|
조회 1,382
|
|
|
|
14년 전
|
조회 1,380
|
|
|
|
14년 전
|
조회 1,348
|
|
|
|
14년 전
|
조회 2,196
|
|
|
|
14년 전
|
조회 1,516
|
|
|
선택이란
|
14년 전
|
조회 1,381
|
|
|
|
14년 전
|
조회 1,310
|
|
|
|
14년 전
|
조회 1,356
|
|
|
|
14년 전
|
조회 1,694
|
|
|
|
14년 전
|
조회 1,604
|
|
|
|
14년 전
|
조회 2,212
|
|
|
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 4,271
|
|
|
선택이란
|
14년 전
|
조회 1,485
|
|
|
|
14년 전
|
조회 2,080
|
|
|
|
14년 전
|
조회 1,791
|
|
|
지운아빠
|
14년 전
|
조회 3,542
|
|
|
|
14년 전
|
조회 3,153
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 2,359
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 3,135
|
|
|
|
14년 전
|
조회 2,707
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 6,422
|
|
|
|
14년 전
|
조회 1,690
|
|
|
|
14년 전
|
조회 2,213
|
|
|
|
14년 전
|
조회 1,993
|
|
|
선택이란
|
14년 전
|
조회 1,941
|
|
|
|
14년 전
|
조회 1,917
|
|
|
|
14년 전
|
조회 1,915
|
|
|
|
14년 전
|
조회 1,732
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 2,483
|
|
|
|
14년 전
|
조회 1,517
|
|
|
|
14년 전
|
조회 1,918
|
|
|
|
14년 전
|
조회 2,893
|
|
|
|
14년 전
|
조회 2,744
|
|
|
관리자
|
14년 전
|
조회 1,747
|
|
|
|
14년 전
|
조회 2,208
|
|
|
관리자
|
14년 전
|
조회 4,699
|
|
|
|
14년 전
|
조회 1,445
|
|
|
|
14년 전
|
조회 3,414
|
|
|
|
14년 전
|
조회 2,174
|
|
|
선택이란
|
14년 전
|
조회 2,636
|
|
|
선택이란
|
14년 전
|
조회 1,847
|
|
|
|
14년 전
|
조회 1,602
|
|
|
똥싼너구리
|
14년 전
|
조회 1,616
|
|
|
관리자
|
14년 전
|
조회 1,730
|
|
|
|
14년 전
|
조회 1,825
|
|
|
|
14년 전
|
조회 2,706
|
|
|
|
14년 전
|
조회 3,946
|
|
|
관리자
|
14년 전
|
조회 3,024
|
|
|
|
14년 전
|
조회 1,741
|
|
|
|
14년 전
|
조회 2,313
|
|
|
|
14년 전
|
조회 2,592
|
|
|
|
14년 전
|
조회 1,376
|
|
|
|
14년 전
|
조회 2,644
|
|
|
|
14년 전
|
조회 3,855
|
|
|
선택이란
|
14년 전
|
조회 2,518
|
|
|
|
14년 전
|
조회 3,458
|
|
|
|
14년 전
|
조회 4,732
|
|
|
|
14년 전
|
조회 4,811
|
|
|
|
14년 전
|
조회 3,211
|
|
|
|
14년 전
|
조회 1,639
|
|
|
선택이란
|
14년 전
|
조회 1,973
|
|
|
|
14년 전
|
조회 4,768
|
|
|
|
14년 전
|
조회 3,073
|
|
|
|
14년 전
|
조회 2,248
|
|
|
|
14년 전
|
조회 4,626
|
|
|
|
14년 전
|
조회 3,262
|
|
|
|
14년 전
|
조회 1,368
|
|
|
|
14년 전
|
조회 3,267
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 2,520
|
|
|
|
14년 전
|
조회 2,131
|
|
|
|
14년 전
|
조회 2,386
|
|
|
|
14년 전
|
조회 1,909
|
|
|
|
14년 전
|
조회 2,936
|
|
|
|
14년 전
|
조회 1,583
|
|
|
|
14년 전
|
조회 1,596
|
댓글 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>
입니다 ㅎㅎ