Solved

submit page to iframe

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

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

Suggested Solutions

Title # Comments Views Activity
How to get chosen background-color on every line? 10 44
Need advice on an App idea......but who do I ask? 2 70
HTML CSS and  Table design 4 70
Anchor Bookmark 6 34
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

739 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