iframe 사이즈 컨트롤
//iframe 안의 페이지에서 펼치기 버튼 클릭 시 해당 페이지의 내용만큼 iframe height를 늘려준다.
//title 높이 + list 높이
function iFrameResize() {
var titleDiv = document.getElementById("titleDiv");
var listDiv = document.getElementById("listDiv");
var pageheight = "";
if(listDiv .scrollHeight != 0 && listDiv != null) {
pageheight = titleDiv.offsetHeight + listDiv .scrollHeight ;
}
parent.document.getElementById("pFrame").style.height = pageheight ;;
}
//상위 iframe 으로 submit 을 할 때는
var theForm = document.form;
var sUrl = document.URL;
var sUrlH = sUrl.substring(0, sUrl.indexOf("jsp"));
$("#YSYOUNDO").val($("input:hidden[name=ARR_YSYOUNDO]").eq(idx).val());
$("#PROGMCODE").val($("input:hidden[name=ARR_PROGMCODE]").eq(idx).val());
theForm.target = parent.frames["insertFrame"].name; // iframe 을 target 으로
theForm.action = sUrlH + "jsp/" + "FTF_SCEUJC_INPUT.jsp";
theForm.submit();