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년 전 | 972 | ||
| 6429 | 12년 전 | 9100 | ||
| 6428 | 12년 전 | 593 | ||
| 6427 |
제이티37
|
12년 전 | 1564 | |
| 6426 |
프로프리랜서
|
12년 전 | 1153 | |
| 6425 |
프로프리랜서
|
12년 전 | 1608 | |
| 6424 |
프로프리랜서
|
12년 전 | 1806 | |
| 6423 | 12년 전 | 998 | ||
| 6422 |
퍼블리셔지노군
|
12년 전 | 1571 | |
| 6421 | 12년 전 | 2206 | ||
| 6420 |
|
12년 전 | 1334 | |
| 6419 |
|
12년 전 | 1286 | |
| 6418 | 12년 전 | 1181 | ||
| 6417 |
senseme
|
12년 전 | 7418 | |
| 6416 |
senseme
|
12년 전 | 1326 | |
| 6415 |
senseme
|
12년 전 | 1188 | |
| 6414 |
senseme
|
12년 전 | 1964 | |
| 6413 |
senseme
|
12년 전 | 967 | |
| 6412 |
senseme
|
12년 전 | 1487 | |
| 6411 |
senseme
|
12년 전 | 1091 | |
| 6410 |
senseme
|
12년 전 | 1043 | |
| 6409 |
PASKRAN
|
12년 전 | 2817 | |
| 6408 | 12년 전 | 10796 | ||
| 6407 | 12년 전 | 2989 | ||
| 6406 |
프로프리랜서
|
12년 전 | 2827 | |
| 6405 |
프로프리랜서
|
12년 전 | 1369 | |
| 6404 |
프로프리랜서
|
12년 전 | 2722 | |
| 6403 |
프로프리랜서
|
12년 전 | 816 | |
| 6402 |
프로프리랜서
|
12년 전 | 1726 | |
| 6401 |
프로프리랜서
|
12년 전 | 1139 | |
| 6400 |
프로프리랜서
|
12년 전 | 1464 | |
| 6399 |
프로프리랜서
|
12년 전 | 1179 | |
| 6398 |
프로프리랜서
|
12년 전 | 1481 | |
| 6397 |
프로프리랜서
|
12년 전 | 3600 | |
| 6396 | 12년 전 | 1869 | ||
| 6395 | 12년 전 | 920 | ||
| 6394 |
|
12년 전 | 5238 | |
| 6393 |
제이티37
|
12년 전 | 1201 | |
| 6392 |
songsinica
|
12년 전 | 1199 | |
| 6391 |
|
12년 전 | 3374 | |
| 6390 |
|
12년 전 | 1620 | |
| 6389 | 12년 전 | 4854 | ||
| 6388 |
스누피사랑
|
12년 전 | 5431 | |
| 6387 | 12년 전 | 1838 | ||
| 6386 | 12년 전 | 3059 | ||
| 6385 |
희망과열정
|
12년 전 | 923 | |
| 6384 | 12년 전 | 3287 | ||
| 6383 | 12년 전 | 10594 | ||
| 6382 |
|
12년 전 | 5789 | |
| 6381 |
SugarSkull
|
12년 전 | 1029 | |
| 6380 | 12년 전 | 777 | ||
| 6379 |
|
12년 전 | 1981 | |
| 6378 | 12년 전 | 1562 | ||
| 6377 | 12년 전 | 496 | ||
| 6376 |
후라보노보노
|
12년 전 | 1332 | |
| 6375 | 12년 전 | 2866 | ||
| 6374 | 12년 전 | 831 | ||
| 6373 | 12년 전 | 2367 | ||
| 6372 |
takumi22
|
12년 전 | 1237 | |
| 6371 |
개초보제이
|
12년 전 | 770 | |
| 6370 |
고급자가되고
|
12년 전 | 1458 | |
| 6369 | 12년 전 | 876 | ||
| 6368 | 12년 전 | 3175 | ||
| 6367 | 12년 전 | 1874 | ||
| 6366 | 12년 전 | 2874 | ||
| 6365 |
lilyosia
|
12년 전 | 1790 | |
| 6364 | 12년 전 | 1055 | ||
| 6363 | 12년 전 | 1588 | ||
| 6362 | 12년 전 | 2731 | ||
| 6361 | 12년 전 | 2555 | ||
| 6360 | 12년 전 | 1000 | ||
| 6359 | 12년 전 | 2103 | ||
| 6358 |
|
12년 전 | 1787 | |
| 6357 |
에헤라디야자진방아를돌려라
|
12년 전 | 777 | |
| 6356 | 12년 전 | 2080 | ||
| 6355 | 12년 전 | 3785 | ||
| 6354 | 12년 전 | 3098 | ||
| 6353 | 12년 전 | 1546 | ||
| 6352 | 12년 전 | 7768 | ||
| 6351 | 12년 전 | 2537 | ||
| 6350 | 12년 전 | 2797 | ||
| 6349 | 12년 전 | 1876 | ||
| 6348 | 12년 전 | 3545 | ||
| 6347 | 12년 전 | 1445 | ||
| 6346 | 12년 전 | 1183 | ||
| 6345 | 12년 전 | 1834 | ||
| 6344 | 12년 전 | 1408 | ||
| 6343 |
프로프리랜서
|
12년 전 | 2059 | |
| 6342 |
프로프리랜서
|
12년 전 | 1375 | |
| 6341 |
프로프리랜서
|
12년 전 | 1811 | |
| 6340 |
프로프리랜서
|
12년 전 | 1894 | |
| 6339 |
프로프리랜서
|
12년 전 | 1336 | |
| 6338 |
프로프리랜서
|
12년 전 | 1584 | |
| 6337 | 12년 전 | 5262 | ||
| 6336 |
프로프리랜서
|
12년 전 | 1629 | |
| 6335 |
프로프리랜서
|
12년 전 | 951 | |
| 6334 |
프로프리랜서
|
12년 전 | 1328 | |
| 6333 |
프로프리랜서
|
12년 전 | 2438 | |
| 6332 | 12년 전 | 1101 | ||
| 6331 |
돗단배123
|
12년 전 | 1421 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기