Solved

submit page to iframe

Posted on 2000-03-06
1
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

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
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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).

617 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