innerHTML을 사용해서 데이터를 받을려고 하는데 입렵한 값이 출력이 되지 않습니다.
조언 부탁 드립니다.
<입력을 받는 php>
<table id="variableFiles" cellpadding=0 cellspacing=0></table>
<script language="JavaScript">
var flen = 0;
function add_pfile()
{
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);
objCell.innerHTML = "<table cellpadding=0 cellspacing=0 ><tr height=25 align=center><td width=100>"+eval(flen+1)+"명</td><td width=100><input type='text' class='ed' style='width:100%;' name='rev_name[]' value=''></td><td width=160><input type='text' class='ed' size=13 maxlength=10 name='rev_birth[]'></td><td width=150><input type='text' class='ed' size=13 maxlength=13 name='rev_jumin[]'></td></tr></table>";
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_pfile()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script>
<출력을 하는 php>
<?
if($data[gubun]==2 || $data[gubun]==3){
$result2 = mysql_query("select * from reservation_new_extend where ridx = '$data[idx]' order by re_no",$dbconn);
for($i=0;$row2=mysql_fetch_array($result2);$i++){
if($i>0)echo "<br />";
echo $row2[re_name]."/".$row2[re_birth]."/".$row2[re_jumin];
}}?>
조언 부탁 드립니다.
<입력을 받는 php>
<table id="variableFiles" cellpadding=0 cellspacing=0></table>
<script language="JavaScript">
var flen = 0;
function add_pfile()
{
var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);
objCell.innerHTML = "<table cellpadding=0 cellspacing=0 ><tr height=25 align=center><td width=100>"+eval(flen+1)+"명</td><td width=100><input type='text' class='ed' style='width:100%;' name='rev_name[]' value=''></td><td width=160><input type='text' class='ed' size=13 maxlength=10 name='rev_birth[]'></td><td width=150><input type='text' class='ed' size=13 maxlength=13 name='rev_jumin[]'></td></tr></table>";
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_pfile()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script>
<출력을 하는 php>
<?
if($data[gubun]==2 || $data[gubun]==3){
$result2 = mysql_query("select * from reservation_new_extend where ridx = '$data[idx]' order by re_no",$dbconn);
for($i=0;$row2=mysql_fetch_array($result2);$i++){
if($i>0)echo "<br />";
echo $row2[re_name]."/".$row2[re_birth]."/".$row2[re_jumin];
}}?>
댓글 2개
12년 전
소스를 자세히 보진 않았지만..
objCell.innerHTML = "<table cellpadding=0 cellspacing=0 > ....... </table>
에서
<table cellpadding=0 cellspacing=0 > 와 끝에 </table> 를 빼보세요.
objCell.innerHTML = "<table cellpadding=0 cellspacing=0 > ....... </table>
에서
<table cellpadding=0 cellspacing=0 > 와 끝에 </table> 를 빼보세요.
12년 전
제가 개발하면서 innerHTML 가 ie 에서 에러가 굉장히 많더라구요 ;
그래서 innerHTML는 절대 안쓰는쪽으로 하고 있습니다 ..
그래서 innerHTML는 절대 안쓰는쪽으로 하고 있습니다 ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6430 | 12년 전 | 977 | ||
| 6429 | 12년 전 | 9100 | ||
| 6428 | 12년 전 | 599 | ||
| 6427 |
제이티37
|
12년 전 | 1567 | |
| 6426 |
프로프리랜서
|
12년 전 | 1154 | |
| 6425 |
프로프리랜서
|
12년 전 | 1608 | |
| 6424 |
프로프리랜서
|
12년 전 | 1806 | |
| 6423 | 12년 전 | 999 | ||
| 6422 |
퍼블리셔지노군
|
12년 전 | 1571 | |
| 6421 | 12년 전 | 2207 | ||
| 6420 |
|
12년 전 | 1334 | |
| 6419 |
|
12년 전 | 1287 | |
| 6418 | 12년 전 | 1181 | ||
| 6417 |
senseme
|
12년 전 | 7418 | |
| 6416 |
senseme
|
12년 전 | 1327 | |
| 6415 |
senseme
|
12년 전 | 1189 | |
| 6414 |
senseme
|
12년 전 | 1967 | |
| 6413 |
senseme
|
12년 전 | 971 | |
| 6412 |
senseme
|
12년 전 | 1489 | |
| 6411 |
senseme
|
12년 전 | 1094 | |
| 6410 |
senseme
|
12년 전 | 1045 | |
| 6409 |
PASKRAN
|
12년 전 | 2818 | |
| 6408 | 12년 전 | 10796 | ||
| 6407 | 12년 전 | 2989 | ||
| 6406 |
프로프리랜서
|
12년 전 | 2828 | |
| 6405 |
프로프리랜서
|
12년 전 | 1369 | |
| 6404 |
프로프리랜서
|
12년 전 | 2722 | |
| 6403 |
프로프리랜서
|
12년 전 | 817 | |
| 6402 |
프로프리랜서
|
12년 전 | 1728 | |
| 6401 |
프로프리랜서
|
12년 전 | 1139 | |
| 6400 |
프로프리랜서
|
12년 전 | 1464 | |
| 6399 |
프로프리랜서
|
12년 전 | 1179 | |
| 6398 |
프로프리랜서
|
12년 전 | 1485 | |
| 6397 |
프로프리랜서
|
12년 전 | 3601 | |
| 6396 | 12년 전 | 1869 | ||
| 6395 | 12년 전 | 920 | ||
| 6394 |
|
12년 전 | 5239 | |
| 6393 |
제이티37
|
12년 전 | 1202 | |
| 6392 |
songsinica
|
12년 전 | 1204 | |
| 6391 |
|
12년 전 | 3379 | |
| 6390 |
|
12년 전 | 1622 | |
| 6389 | 12년 전 | 4855 | ||
| 6388 |
스누피사랑
|
12년 전 | 5431 | |
| 6387 | 12년 전 | 1838 | ||
| 6386 | 12년 전 | 3059 | ||
| 6385 |
희망과열정
|
12년 전 | 923 | |
| 6384 | 12년 전 | 3287 | ||
| 6383 | 12년 전 | 10595 | ||
| 6382 |
|
12년 전 | 5790 | |
| 6381 |
SugarSkull
|
12년 전 | 1030 | |
| 6380 | 12년 전 | 777 | ||
| 6379 |
|
12년 전 | 1982 | |
| 6378 | 12년 전 | 1562 | ||
| 6377 | 12년 전 | 497 | ||
| 6376 |
후라보노보노
|
12년 전 | 1332 | |
| 6375 | 12년 전 | 2866 | ||
| 6374 | 12년 전 | 832 | ||
| 6373 | 12년 전 | 2367 | ||
| 6372 |
takumi22
|
12년 전 | 1237 | |
| 6371 |
개초보제이
|
12년 전 | 772 | |
| 6370 |
고급자가되고
|
12년 전 | 1461 | |
| 6369 | 12년 전 | 881 | ||
| 6368 | 12년 전 | 3176 | ||
| 6367 | 12년 전 | 1879 | ||
| 6366 | 12년 전 | 2876 | ||
| 6365 |
lilyosia
|
12년 전 | 1794 | |
| 6364 | 12년 전 | 1057 | ||
| 6363 | 12년 전 | 1588 | ||
| 6362 | 12년 전 | 2733 | ||
| 6361 | 12년 전 | 2556 | ||
| 6360 | 12년 전 | 1000 | ||
| 6359 | 12년 전 | 2104 | ||
| 6358 |
|
12년 전 | 1787 | |
| 6357 |
에헤라디야자진방아를돌려라
|
12년 전 | 778 | |
| 6356 | 12년 전 | 2084 | ||
| 6355 | 12년 전 | 3787 | ||
| 6354 | 12년 전 | 3099 | ||
| 6353 | 12년 전 | 1546 | ||
| 6352 | 12년 전 | 7769 | ||
| 6351 | 12년 전 | 2537 | ||
| 6350 | 12년 전 | 2797 | ||
| 6349 | 12년 전 | 1880 | ||
| 6348 | 12년 전 | 3546 | ||
| 6347 | 12년 전 | 1446 | ||
| 6346 | 12년 전 | 1183 | ||
| 6345 | 12년 전 | 1835 | ||
| 6344 | 12년 전 | 1408 | ||
| 6343 |
프로프리랜서
|
12년 전 | 2059 | |
| 6342 |
프로프리랜서
|
12년 전 | 1381 | |
| 6341 |
프로프리랜서
|
12년 전 | 1812 | |
| 6340 |
프로프리랜서
|
12년 전 | 1896 | |
| 6339 |
프로프리랜서
|
12년 전 | 1338 | |
| 6338 |
프로프리랜서
|
12년 전 | 1591 | |
| 6337 | 12년 전 | 5266 | ||
| 6336 |
프로프리랜서
|
12년 전 | 1629 | |
| 6335 |
프로프리랜서
|
12년 전 | 951 | |
| 6334 |
프로프리랜서
|
12년 전 | 1328 | |
| 6333 |
프로프리랜서
|
12년 전 | 2438 | |
| 6332 | 12년 전 | 1102 | ||
| 6331 |
돗단배123
|
12년 전 | 1421 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기