Solved

submit page to iframe

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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 …

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now