function fnModal(rno){
$.ajax({
url: "타겟url",
type: "post",
dataType: "json",
data:{'rno':rno},
success: function(r){
var mydata = eval(r);
var f_name = "<a href='#' onclick='javascrpit:fnDown('"+mydata['files1']+"');'>"+mydata['files1']+"</a>";
$("#writer").html(mydata['writer']);
$("#email").html(mydata['email']);
$("#wday").html(mydata['wday']);
$("#vcount").html(mydata['vcount']);
$("#title").html(mydata['title']);
$("#f_name").html(f_name);
$("#content").val(mydata['content']);
$("#large").modal("show");
},
//디버그용 에러확인
error:function(request,status,error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
}
});
}
'php' 카테고리의 다른 글
php 배열을 쿼리 in 절로 변환 (0) | 2015.05.25 |
---|---|
kisa sha256 모듈의 php 아파치 64비트 사용 안됨. (0) | 2015.04.07 |
php 배열을 json 형태로 변환시 (0) | 2015.01.19 |
리스트로 뽑은 배열을 다시 수정할때 (0) | 2015.01.19 |