Apr 24, 2004 #1 Bob2 Programmer Jul 3, 2000 228 SE Hi I wonder if and how I can submit form values on the main page (that holds an iFrame) to the iFrame itself? If there are any that also knows how this is done in asp.net and vb.net - I would be happy to know that way to. Regards
Hi I wonder if and how I can submit form values on the main page (that holds an iFrame) to the iFrame itself? If there are any that also knows how this is done in asp.net and vb.net - I would be happy to know that way to. Regards
Apr 25, 2004 #2 Vragabond Programmer Jul 23, 2003 5,100 AT How about: Code: <form name="MyForm" action="script.aspx" target="MyIframe"> ... </form> <iframe name="MyIframe" src="" width="300" height="300"></iframe> Upvote 0 Downvote
How about: Code: <form name="MyForm" action="script.aspx" target="MyIframe"> ... </form> <iframe name="MyIframe" src="" width="300" height="300"></iframe>
Apr 25, 2004 Thread starter #3 Bob2 Programmer Jul 3, 2000 228 SE Hi I thought that was the way too, but when I submit the form values inside the iframe - nothing is displayed. Any ideas? /M Upvote 0 Downvote
Hi I thought that was the way too, but when I submit the form values inside the iframe - nothing is displayed. Any ideas? /M
Apr 25, 2004 #4 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB That is the way to do it - I've been coding a page all day that is doing that with much success. Maybe the error doesn't lie with the functionality, but somewhere in the code of either source or target pages? Hope this helps, Dan Upvote 0 Downvote
That is the way to do it - I've been coding a page all day that is doing that with much success. Maybe the error doesn't lie with the functionality, but somewhere in the code of either source or target pages? Hope this helps, Dan
Apr 25, 2004 Thread starter #5 Bob2 Programmer Jul 3, 2000 228 SE Hi I use a simple <%Response.Write Request.Form("MyValue")%> But that doesn't give me anything.. Here is the pages I use main.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <iframe id="pdfFrame" name="pdfFrame" style="position:absolute; width:200px; height:300px; top:36px; left:333px; z-index:1" frameborder="yes" scrolling="no" src="iframe.aspx">Your Browser doesn't support iFrame please upgrade</iframe> <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:2; left: 67px; top: 36px;"> <form action="iframe.asp" method="post" name="form1" target="pdfFrame"> <input name="MyValue" type="text" id="MyValue"> <br> <br> <input name="Button" type="button" value="Button"> </form> </div> </body> </html> iframe.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <%Response.Write ("value = " & request.form("MyValue"))%> </body> </html> Regards M Upvote 0 Downvote
Hi I use a simple <%Response.Write Request.Form("MyValue")%> But that doesn't give me anything.. Here is the pages I use main.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <iframe id="pdfFrame" name="pdfFrame" style="position:absolute; width:200px; height:300px; top:36px; left:333px; z-index:1" frameborder="yes" scrolling="no" src="iframe.aspx">Your Browser doesn't support iFrame please upgrade</iframe> <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:2; left: 67px; top: 36px;"> <form action="iframe.asp" method="post" name="form1" target="pdfFrame"> <input name="MyValue" type="text" id="MyValue"> <br> <br> <input name="Button" type="button" value="Button"> </form> </div> </body> </html> iframe.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <%Response.Write ("value = " & request.form("MyValue"))%> </body> </html> Regards M
Apr 25, 2004 #6 vongrunt Programmer Mar 8, 2004 4,863 HR Replace input type="button" with "submit" Upvote 0 Downvote
Apr 25, 2004 Thread starter #7 Bob2 Programmer Jul 3, 2000 228 SE Hi Sometimes its easy... Thanks a lot! Regards M Upvote 0 Downvote