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는 절대 안쓰는쪽으로 하고 있습니다 ..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6230 |
senseme
|
12년 전 | 1051 | |
| 6229 |
senseme
|
12년 전 | 1070 | |
| 6228 | 12년 전 | 4434 | ||
| 6227 |
senseme
|
12년 전 | 1491 | |
| 6226 |
senseme
|
12년 전 | 1631 | |
| 6225 | 12년 전 | 5488 | ||
| 6224 | 12년 전 | 3263 | ||
| 6223 |
kiplayer
|
12년 전 | 2136 | |
| 6222 | 12년 전 | 1294 | ||
| 6221 | 12년 전 | 3482 | ||
| 6220 | 12년 전 | 2510 | ||
| 6219 | 12년 전 | 2222 | ||
| 6218 |
senseme
|
12년 전 | 1839 | |
| 6217 |
senseme
|
12년 전 | 1532 | |
| 6216 |
senseme
|
12년 전 | 1523 | |
| 6215 |
senseme
|
12년 전 | 1280 | |
| 6214 | 12년 전 | 2392 | ||
| 6213 |
senseme
|
12년 전 | 1667 | |
| 6212 |
senseme
|
12년 전 | 1342 | |
| 6211 |
senseme
|
12년 전 | 2427 | |
| 6210 |
senseme
|
12년 전 | 1600 | |
| 6209 | 12년 전 | 2214 | ||
| 6208 | 12년 전 | 3437 | ||
| 6207 | 12년 전 | 1220 | ||
| 6206 |
senseme
|
12년 전 | 2196 | |
| 6205 | 12년 전 | 1034 | ||
| 6204 |
kiplayer
|
12년 전 | 1524 | |
| 6203 |
senseme
|
12년 전 | 2110 | |
| 6202 |
senseme
|
12년 전 | 1749 | |
| 6201 |
senseme
|
12년 전 | 4557 | |
| 6200 |
senseme
|
12년 전 | 2655 | |
| 6199 |
senseme
|
12년 전 | 2825 | |
| 6198 |
senseme
|
12년 전 | 1226 | |
| 6197 |
senseme
|
12년 전 | 8539 | |
| 6196 |
senseme
|
12년 전 | 3330 | |
| 6195 | 12년 전 | 1429 | ||
| 6194 |
|
12년 전 | 1279 | |
| 6193 |
senseme
|
12년 전 | 2684 | |
| 6192 |
senseme
|
12년 전 | 5359 | |
| 6191 |
senseme
|
12년 전 | 3405 | |
| 6190 | 12년 전 | 1332 | ||
| 6189 | 12년 전 | 13489 | ||
| 6188 |
웹디자인되고파
|
12년 전 | 1200 | |
| 6187 | 12년 전 | 603 | ||
| 6186 | 12년 전 | 3919 | ||
| 6185 | 12년 전 | 1460 | ||
| 6184 | 12년 전 | 9367 | ||
| 6183 | 12년 전 | 775 | ||
| 6182 |
senseme
|
12년 전 | 1232 | |
| 6181 |
senseme
|
12년 전 | 3212 | |
| 6180 |
senseme
|
12년 전 | 841 | |
| 6179 |
senseme
|
12년 전 | 1759 | |
| 6178 | 12년 전 | 3631 | ||
| 6177 | 12년 전 | 1063 | ||
| 6176 | 12년 전 | 948 | ||
| 6175 |
senseme
|
12년 전 | 5295 | |
| 6174 |
senseme
|
12년 전 | 1421 | |
| 6173 |
senseme
|
12년 전 | 750 | |
| 6172 |
senseme
|
12년 전 | 2737 | |
| 6171 |
senseme
|
12년 전 | 2471 | |
| 6170 |
senseme
|
12년 전 | 1493 | |
| 6169 |
senseme
|
12년 전 | 2924 | |
| 6168 |
senseme
|
12년 전 | 6534 | |
| 6167 | 12년 전 | 2134 | ||
| 6166 | 12년 전 | 738 | ||
| 6165 |
페이지팩트
|
12년 전 | 1897 | |
| 6164 |
네오soft
|
12년 전 | 1852 | |
| 6163 |
|
12년 전 | 2606 | |
| 6162 | 12년 전 | 590 | ||
| 6161 |
|
12년 전 | 1687 | |
| 6160 | 12년 전 | 765 | ||
| 6159 | 12년 전 | 1775 | ||
| 6158 |
|
12년 전 | 2679 | |
| 6157 |
sa2pan
|
12년 전 | 1238 | |
| 6156 | 12년 전 | 3885 | ||
| 6155 | 12년 전 | 9958 | ||
| 6154 | 12년 전 | 1123 | ||
| 6153 | 12년 전 | 2449 | ||
| 6152 |
생각보다몸이앞서다
|
12년 전 | 2117 | |
| 6151 | 12년 전 | 2972 | ||
| 6150 |
kiplayer
|
12년 전 | 6000 | |
| 6149 |
|
12년 전 | 2639 | |
| 6148 | 12년 전 | 2961 | ||
| 6147 |
hwang007
|
12년 전 | 951 | |
| 6146 |
aqqasdf
|
12년 전 | 762 | |
| 6145 | 12년 전 | 1853 | ||
| 6144 | 12년 전 | 5858 | ||
| 6143 |
smwkd
|
12년 전 | 1457 | |
| 6142 | 12년 전 | 4694 | ||
| 6141 | 12년 전 | 928 | ||
| 6140 | 12년 전 | 4086 | ||
| 6139 | 12년 전 | 1234 | ||
| 6138 | 12년 전 | 1093 | ||
| 6137 |
SugarSkull
|
12년 전 | 1675 | |
| 6136 | 12년 전 | 1303 | ||
| 6135 |
한번잘해보자
|
12년 전 | 559 | |
| 6134 |
프리랜서개발자
|
12년 전 | 532 | |
| 6133 |
basaria
|
12년 전 | 20439 | |
| 6132 | 12년 전 | 500 | ||
| 6131 | 12년 전 | 1080 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기