비

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

· 2012-01-10 (화) 13:53:25 · 4408
<!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건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,633
12-01-11 조회 1.2만
12-01-10 조회 2,627
12-01-08 조회 3,347
12-01-05 조회 5,228
11-12-29 조회 2,856
11-12-27 조회 2,748
11-12-25 조회 2,890
11-12-22 조회 3,193
11-12-14 조회 2,775
11-12-12 조회 3,375
11-11-28 조회 3,304
10-10-19 조회 2,772
08-09-05 조회 3,677
08-09-05 조회 3,504
08-06-14 조회 3,250
08-04-22 조회 3,519
08-04-17 조회 3,528
07-10-03 조회 4,129
07-10-03 조회 3,540
07-10-03 조회 7,210
07-10-03 조회 4,446
07-10-03 조회 3,174
07-10-03 조회 2,764
07-10-02 조회 3,512
07-10-02 조회 3,031
07-09-27 조회 4,947
07-09-27 조회 3,764
06-09-26 조회 3,457
06-09-26 조회 4,664
06-09-22 조회 3,830
06-09-22 조회 3,431
06-09-22 조회 4,171
06-09-21 조회 4,137
06-08-18 조회 3,616
05-11-30 조회 4,675
05-07-15 조회 4,529
05-03-23 조회 4,583
05-03-14 조회 3,233
05-03-13 조회 2,618
04-08-05 조회 5,703