<input type="text" name="aa" maxlength="4" size="13" style="width:75px; text-align:center; height:20" /><b>氏</b>의 내용을
아래의 테이블 셀에 넘겨주는 소스입니다.
"XE"의 "외부페이지"에 등록하지 않았을때는 아무 문제없이 작동을 잘합니다.
아래의 스크립트를 JS파일로 만들어서 불러오기도 했고
페이지에 직접 넣어서 적용도 해봤거든요.
그런데
근데 "외부페이지"등록만 하면 에러가 생기는군요. 개체가 필요하다는데 통 모르겠습니다.
에러메세는 ("개체가 필요합니다."
줄 : 2
코드 : 0 문자 : 9) 하고 뜸니다.
무엇이 문제인지 답답한 저의 가슴좀 풀어주십시오.
function createSell() {
var names = document.getElementById("aa").value;
if (names != "") {
document.getElementsByName("td0")[4].innerHTML = names.charAt(0);
document.getElementsByName("td0")[5].innerHTML = names.charAt(1);
document.getElementsByName("td0")[6].innerHTML = names.charAt(2);
document.getElementsByName("td1")[4].innerHTML = names.charAt(0);
document.getElementsByName("td1")[5].innerHTML = names.charAt(1);
document.getElementsByName("td1")[6].innerHTML = names.charAt(2);
if (names.length > 3) {
document.getElementsByName("td0")[7].style.display = "block";
document.getElementsByName("td1")[7].style.display = "block";
for (var i = 0; i < document.getElementsByName("td0").length; i++) {
if (i == 0) strpx = "77px";
else if (i == document.getElementsByName("td0").length - 1) strpx = "77px";
else strpx = "69px";
document.getElementsByName("td0")[i].style.height = strpx;
document.getElementsByName("td1")[i].style.height = strpx;
}
document.getElementsByName("td0")[7].innerHTML = names.charAt(3);
document.getElementsByName("td1")[7].innerHTML = names.charAt(3);
} else {
document.getElementsByName("td0")[7].style.display = "none";
document.getElementsByName("td1")[7].style.display = "none";
for (var i = 0; i < document.getElementsByName("td0").length; i++) {
document.getElementsByName("td0")[i].style.height = "77px";
document.getElementsByName("td1")[i].style.height = "77px";
}
}
} else alert("성과 본관 을 입력해주세요!");
}
죄송하게도 저도 잘 모르겠네요^.^