Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

submit page to iframe

Posted on 2000-03-06
1
Medium Priority
?
269 Views
Last Modified: 2010-04-09
i have regular asp page with
a form with 2 fields.
inside this page i inserted an iframe
i want to submit the form to the iframe.
how can i do it?
0
Comment
Question by:eladr
1 Comment
 
LVL 1

Accepted Solution

by:
clim1219 earned 40 total points
ID: 2599431
you can do this with the code below. it uses a javascript function to populate the iframe.

<html>
<head>              
<script language="javascript">
function iframe_put() {
   comIfrm.document.write(
       txtName.value + "<br>" +
       txtAddress.value) ;
}          
</script>      
</head>            
<body>      
Name:<input type=text name=txtName><br>
Address:<input type=text name=txtAddress><br>
<input type=button name=btn value="click me" onclick="iframe_put()">
<br><br>
<IFRAME NAME="comIfrm" ID="comIfrm" STYLE="LEFT:1px;TOP:100px;
     WIDTH:200;HEIGHT:100px;VISIBILITY:visible"></IFRAME>
</body>
</html>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question