Solved

submit page to iframe

Posted on 2000-03-06
1
263 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 20 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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