|
|
|
14년 전
|
조회 1,087
|
|
|
|
14년 전
|
조회 1,792
|
|
|
|
14년 전
|
조회 2,882
|
|
|
|
14년 전
|
조회 2,128
|
|
|
|
14년 전
|
조회 2,188
|
|
|
|
14년 전
|
조회 1,625
|
|
|
|
14년 전
|
조회 1,419
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 1,095
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 1,484
|
|
|
|
14년 전
|
조회 4,567
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 1,218
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 651
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 712
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 1,539
|
|
|
|
14년 전
|
조회 840
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 1,024
|
|
|
|
14년 전
|
조회 925
|
|
|
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 1,137
|
|
|
|
14년 전
|
조회 3,599
|
|
|
|
14년 전
|
조회 822
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 1,119
|
|
|
지운아빠
|
14년 전
|
조회 2,847
|
|
|
|
14년 전
|
조회 2,458
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 1,701
|
|
|
|
14년 전
|
조회 681
|
|
|
|
14년 전
|
조회 2,464
|
|
|
|
14년 전
|
조회 2,017
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 5,720
|
|
|
|
14년 전
|
조회 979
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 1,313
|
|
|
|
14년 전
|
조회 1,340
|
|
|
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 1,049
|
|
|
|
14년 전
|
조회 1,413
|
|
|
|
14년 전
|
조회 1,806
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 1,203
|
|
|
|
14년 전
|
조회 2,232
|
|
|
|
14년 전
|
조회 2,082
|
|
|
관리자
|
14년 전
|
조회 1,053
|
|
|
|
14년 전
|
조회 1,530
|
|
|
관리자
|
14년 전
|
조회 4,032
|
|
|
|
14년 전
|
조회 757
|
|
|
|
14년 전
|
조회 2,737
|
|
|
|
14년 전
|
조회 1,505
|
|
|
|
14년 전
|
조회 1,967
|
|
|
|
14년 전
|
조회 1,167
|
|
|
|
14년 전
|
조회 933
|
|
|
똥싼너구리
|
14년 전
|
조회 951
|
|
|
관리자
|
14년 전
|
조회 1,086
|
|
|
|
14년 전
|
조회 1,168
|
|
|
|
14년 전
|
조회 2,048
|
|
|
|
14년 전
|
조회 3,292
|
|
|
관리자
|
14년 전
|
조회 2,332
|
|
|
|
14년 전
|
조회 1,055
|
|
|
|
14년 전
|
조회 1,653
|
|
|
|
14년 전
|
조회 1,914
|
|
|
|
14년 전
|
조회 702
|
|
|
|
14년 전
|
조회 1,943
|
|
|
|
14년 전
|
조회 3,173
|
|
|
|
14년 전
|
조회 1,857
|
|
|
|
14년 전
|
조회 2,787
|
|
|
|
14년 전
|
조회 4,102
|
|
|
|
14년 전
|
조회 4,144
|
|
|
|
14년 전
|
조회 2,546
|
|
|
|
14년 전
|
조회 968
|
|
|
|
14년 전
|
조회 1,275
|
|
|
|
14년 전
|
조회 4,101
|
|
|
|
14년 전
|
조회 2,421
|
|
|
|
14년 전
|
조회 1,566
|
|
|
|
14년 전
|
조회 3,951
|
|
|
|
14년 전
|
조회 2,609
|
|
|
|
14년 전
|
조회 695
|
|
|
|
14년 전
|
조회 2,609
|
|
|
|
14년 전
|
조회 741
|
|
|
|
14년 전
|
조회 969
|
|
|
|
14년 전
|
조회 1,819
|
|
|
|
14년 전
|
조회 1,439
|
|
|
|
14년 전
|
조회 1,687
|
|
|
|
14년 전
|
조회 1,254
|
|
|
|
14년 전
|
조회 2,265
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 937
|
댓글 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>
입니다 ㅎㅎ