비

라디오박스 폼 submit 후 프로세스파일(iframe)에서 처리후 부모창으로

· 2012-01-10 (화) 13:53:25 · 4502
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>titel</title>

</head>

<body>
<script type="text/javascript">
function formsubmit(Frm){

}
function btnform(){
var Frm = document.frm;
Frm.target = "juny_ok";
Frm.action = "juny_ok.html";
Frm.submit();
}
</script>


<form name="frm" action="./update.emt" method="post" onsubmit="return formsubmit(this);">
<fieldset>
<legend>회원가입 폼</legend>
<table summary="회원가입" border=1 width="100%">
<caption>회원가입</caption>
<tbody>
<tr>
<th>성명 : </th>
<td><input type="text" name="name" value="" /></td>
</tr>
<tr>
<th>옵션 : </th>
<td>
<input type="radio" name="radio1" id="radio1_1" value="1" onclick="btnform();" /><label for="radio1_1">학생</label>
<input type="radio" name="radio1" id="radio1_2" value="1" onclick="btnform();" /><label for="radio1_2">선생</label>
<input type="radio" name="radio1" id="radio1_3" value="1" onclick="btnform();" /><label for="radio1_3">일반</label>
<input type="radio" name="radio1" id="radio1_4" value="1" onclick="btnform();" /><label for="radio1_4">기타</label>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" /></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<div id="AAAAA" ></div>


<iframe name="juny_ok"></iframe>

</body>

</html>



----------------------------------------




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>titel</title>

</head>

<body>
111
<script>
parent.window.document.getElementById("AAAAA").innerHTML = "<select><option>aaa</option><option>bbb</option></select>";
</script>

</body>

</html>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-03-02 조회 3,240
16-01-19 조회 2,526
15-12-23 조회 2,959
15-12-08 조회 3,677
14-10-30 조회 5,732
14-06-06 조회 5,555
12-08-30 조회 3,910
12-08-20 조회 3,828
12-07-15 조회 5,158
12-07-13 조회 3,630
12-07-06 조회 3,858
12-06-27 조회 3,366
12-06-23 조회 3,570
12-05-03 조회 5,182
12-04-20 조회 4,126
12-03-29 조회 4,632
12-03-22 조회 4,739
12-03-22 조회 3,510
12-03-21 조회 3,282
12-03-11 조회 3,715
12-03-06 조회 4,264
12-02-22 조회 4,532
12-02-17 조회 3,329
12-02-17 조회 6,179
12-02-14 조회 6,137
12-02-06 조회 4,261
12-01-18 조회 3,215
12-01-06 조회 3,444
11-12-30 조회 3,914
11-12-30 조회 7,061
11-12-21 조회 3,280
11-12-21 조회 4,245
11-12-16 조회 3,273
11-12-15 조회 3,323
11-12-15 조회 3,422
11-12-15 조회 4,223
11-12-09 조회 3,227
11-12-09 조회 3,308
11-12-07 조회 2,874
11-12-07 조회 3,961
11-12-05 조회 4,417
11-12-02 조회 3,861
11-12-01 조회 2,731
11-12-01 조회 2,776
11-12-01 조회 2,763