게시판 본문 ASP, ASP.NET, IIS & Script - Read Only
| 모달창에서 입력한 값 받기 |
|---|
|
작성자: 궁금이
작성일시: 2005-11-07 12:37,
조회수: 3,232
|
|
페이지 내에 프린트 버튼을 클릭을 하면...
view.asp가 뜨고, View.asp는 모달 창(input.asp)을 바로 띄웁니다. 모달로 뜬 input.asp에서 값을 입력하여 view.asp로 값을 전달 받으려고 하는데... 잘 안되는 군요. view.asp 소스입니다. <html> <head> <title></title> <script language="javascript"> function func_onLoad(){ var retVal = window.showModalDialog( "input.asp" , window, "dialogWidth:300px; dialogHeight:200px; center:yes; status:no; resizeable:yes; scroll:no; help:no;"); } </script> </head> <body Onload="func_onLoad();"> <% hname = Request("hname") Response.write hname %> </body> </html> 과 같이 모달 창이 뜹니다. input.asp에서 값을 입력 받은 후 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987"> <title>password verify</title> <script language="javascript"> <!-- function Ok() { var pwd = document.form.hname.value; window.returnValue = hname; window.close(); } --> </script> </head> <body> <form name="form"> <table> <tr> <td> <input type="text" name="hname" size="7"> <input type="button" value="입력완료" name="write" OnClick="Ok();"> </td> </tr> </table> </form> </body> </html> 처럼 되어 있습니다. hname = Request("hname") Response.write hname 이 부분에서 모달창에 입력한 값을 받아 오지 않나요? |
|
IP 주소: 61.33.79.10
|
|
게시물 | |||
|---|---|---|---|---|
| 1,357 | 2005-11-14 | 6,461 | ||
| 1,356 | 2005-11-14 | 4,104 | ||
| 1,355 | 2005-11-14 | 3,713 | ||
| 1,354 | 2005-11-14 | 4,108 | ||
| 1,353 | 2005-11-14 | 4,009 | ||
| 1,352 | 2005-11-14 | 11,206 | ||
| 1,351 | 2005-11-14 | 3,779 | ||
| 1,350 | 2005-11-15 | 3,832 | ||
| 1,349 |
초보자 |
2005-11-10 | 1,287 | |
| 1,348 | 2005-11-10 | 3,976 | ||
| 1,347 |
영이 |
2005-11-09 | 1,220 | |
| 1,346 | 2005-11-09 | 3,968 | ||
| 1,345 |
영이 |
2005-11-09 | 1,225 | |
| 1,344 | 2005-11-10 | 3,969 | ||
| 1,343 |
세션값 끊기?? [3] |
omar |
2005-11-08 | 1,439 |
| 1,342 |
지니 |
2005-11-08 | 1,398 | |
| 1,341 | 2005-11-08 | 4,180 | ||
|
궁금이 |
2005-11-07 | 3,232 | ||
| 1,339 | 2005-11-07 | 4,428 | ||
| 1,338 |
정규식좀 알려주세요.. [1] |
정규식 |
2005-11-04 | 1,354 |
| 1,337 |
궁금이 |
2005-11-02 | 1,428 | |
| 1,336 | 2005-11-02 | 3,956 | ||
| 1,335 |
궁금이 |
2005-11-02 | 1,331 | |
| 1,334 | 2005-11-02 | 4,001 | ||
| 1,333 |
궁금이 |
2005-11-01 | 1,483 |

sign in
join
re: 성적자료 저장전 자료검사에서