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년 전 | 979 | ||
| 6429 | 12년 전 | 9103 | ||
| 6428 | 12년 전 | 604 | ||
| 6427 |
제이티37
|
12년 전 | 1570 | |
| 6426 |
프로프리랜서
|
12년 전 | 1154 | |
| 6425 |
프로프리랜서
|
12년 전 | 1608 | |
| 6424 |
프로프리랜서
|
12년 전 | 1813 | |
| 6423 | 12년 전 | 1000 | ||
| 6422 |
퍼블리셔지노군
|
12년 전 | 1574 | |
| 6421 | 12년 전 | 2208 | ||
| 6420 |
|
12년 전 | 1334 | |
| 6419 |
|
12년 전 | 1287 | |
| 6418 | 12년 전 | 1182 | ||
| 6417 |
senseme
|
12년 전 | 7421 | |
| 6416 |
senseme
|
12년 전 | 1330 | |
| 6415 |
senseme
|
12년 전 | 1193 | |
| 6414 |
senseme
|
12년 전 | 1968 | |
| 6413 |
senseme
|
12년 전 | 973 | |
| 6412 |
senseme
|
12년 전 | 1492 | |
| 6411 |
senseme
|
12년 전 | 1100 | |
| 6410 |
senseme
|
12년 전 | 1046 | |
| 6409 |
PASKRAN
|
12년 전 | 2818 | |
| 6408 | 12년 전 | 10799 | ||
| 6407 | 12년 전 | 2990 | ||
| 6406 |
프로프리랜서
|
12년 전 | 2834 | |
| 6405 |
프로프리랜서
|
12년 전 | 1371 | |
| 6404 |
프로프리랜서
|
12년 전 | 2724 | |
| 6403 |
프로프리랜서
|
12년 전 | 818 | |
| 6402 |
프로프리랜서
|
12년 전 | 1731 | |
| 6401 |
프로프리랜서
|
12년 전 | 1139 | |
| 6400 |
프로프리랜서
|
12년 전 | 1464 | |
| 6399 |
프로프리랜서
|
12년 전 | 1179 | |
| 6398 |
프로프리랜서
|
12년 전 | 1488 | |
| 6397 |
프로프리랜서
|
12년 전 | 3604 | |
| 6396 | 12년 전 | 1870 | ||
| 6395 | 12년 전 | 920 | ||
| 6394 |
|
12년 전 | 5240 | |
| 6393 |
제이티37
|
12년 전 | 1204 | |
| 6392 |
songsinica
|
12년 전 | 1206 | |
| 6391 |
|
12년 전 | 3386 | |
| 6390 |
|
12년 전 | 1626 | |
| 6389 | 12년 전 | 4859 | ||
| 6388 |
스누피사랑
|
12년 전 | 5431 | |
| 6387 | 12년 전 | 1838 | ||
| 6386 | 12년 전 | 3059 | ||
| 6385 |
희망과열정
|
12년 전 | 926 | |
| 6384 | 12년 전 | 3293 | ||
| 6383 | 12년 전 | 10600 | ||
| 6382 |
|
12년 전 | 5790 | |
| 6381 |
SugarSkull
|
12년 전 | 1031 | |
| 6380 | 12년 전 | 777 | ||
| 6379 |
|
12년 전 | 1984 | |
| 6378 | 12년 전 | 1562 | ||
| 6377 | 12년 전 | 498 | ||
| 6376 |
후라보노보노
|
12년 전 | 1332 | |
| 6375 | 12년 전 | 2867 | ||
| 6374 | 12년 전 | 834 | ||
| 6373 | 12년 전 | 2367 | ||
| 6372 |
takumi22
|
12년 전 | 1241 | |
| 6371 |
개초보제이
|
12년 전 | 774 | |
| 6370 |
고급자가되고
|
12년 전 | 1461 | |
| 6369 | 12년 전 | 885 | ||
| 6368 | 12년 전 | 3182 | ||
| 6367 | 12년 전 | 1880 | ||
| 6366 | 12년 전 | 2881 | ||
| 6365 |
lilyosia
|
12년 전 | 1796 | |
| 6364 | 12년 전 | 1057 | ||
| 6363 | 12년 전 | 1589 | ||
| 6362 | 12년 전 | 2734 | ||
| 6361 | 12년 전 | 2560 | ||
| 6360 | 12년 전 | 1008 | ||
| 6359 | 12년 전 | 2104 | ||
| 6358 |
|
12년 전 | 1787 | |
| 6357 |
에헤라디야자진방아를돌려라
|
12년 전 | 779 | |
| 6356 | 12년 전 | 2086 | ||
| 6355 | 12년 전 | 3787 | ||
| 6354 | 12년 전 | 3102 | ||
| 6353 | 12년 전 | 1547 | ||
| 6352 | 12년 전 | 7769 | ||
| 6351 | 12년 전 | 2540 | ||
| 6350 | 12년 전 | 2798 | ||
| 6349 | 12년 전 | 1881 | ||
| 6348 | 12년 전 | 3546 | ||
| 6347 | 12년 전 | 1448 | ||
| 6346 | 12년 전 | 1185 | ||
| 6345 | 12년 전 | 1835 | ||
| 6344 | 12년 전 | 1413 | ||
| 6343 |
프로프리랜서
|
12년 전 | 2059 | |
| 6342 |
프로프리랜서
|
12년 전 | 1383 | |
| 6341 |
프로프리랜서
|
12년 전 | 1812 | |
| 6340 |
프로프리랜서
|
12년 전 | 1900 | |
| 6339 |
프로프리랜서
|
12년 전 | 1340 | |
| 6338 |
프로프리랜서
|
12년 전 | 1597 | |
| 6337 | 12년 전 | 5268 | ||
| 6336 |
프로프리랜서
|
12년 전 | 1630 | |
| 6335 |
프로프리랜서
|
12년 전 | 951 | |
| 6334 |
프로프리랜서
|
12년 전 | 1328 | |
| 6333 |
프로프리랜서
|
12년 전 | 2441 | |
| 6332 | 12년 전 | 1102 | ||
| 6331 |
돗단배123
|
12년 전 | 1421 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기