473,714 Members | 2,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

post to iframe

Hi,

Just wondering how (or if it's possible) to post from my
page to another .asp page within an iframe? Hopefully
that question make sense? I know how to launch load a
page with an iframe, but how do I post to a page within a
page? Thanks, Doug

Jul 19 '05 #1
7 26968
If you want to make a link load something in an iframe use:

<a href="page.html " target="myframe ">Click here</a>
(Where myframe is the name of the iframe)

if you have a link inside the iframe that you want to load the next page in
the iframe too, just leave out the target="" part

Gram

"doug" <do******@adelp hia.net> wrote in message
news:00******** *************** *****@phx.gbl.. .
Hi,

Just wondering how (or if it's possible) to post from my
page to another .asp page within an iframe? Hopefully
that question make sense? I know how to launch load a
page with an iframe, but how do I post to a page within a
page? Thanks, Doug

Jul 19 '05 #2
OK ... how would I post a form to an iframe? - doug
-----Original Message-----
If you want to make a link load something in an iframe use:
<a href="page.html " target="myframe ">Click here</a>
(Where myframe is the name of the iframe)

if you have a link inside the iframe that you want to load the next page inthe iframe too, just leave out the target="" part

Gram


Jul 19 '05 #3
Set the target of the form to the name of the iframe I believe will work.

"doug" <do******@adelp hia.net> wrote in message
news:1a******** *************** *****@phx.gbl.. .
OK ... how would I post a form to an iframe? - doug
-----Original Message-----
If you want to make a link load something in an iframe use:
<a href="page.html " target="myframe ">Click here</a>
(Where myframe is the name of the iframe)

if you have a link inside the iframe that you want to load the next page inthe iframe too, just leave out the target="" part

Gram

Jul 19 '05 #4
Thanks for the suggestions ... is anyone willing to submit
a brief code sample. What happens when I try is that
either, the form submits to a new window ... i.e. not in
my iframe ... or the iframe loads without my form's data
being passed to it. I guess another way of saying this is
that the iframe loads, but my form does not submit.

The way I was submitted prior to attempting the iframe
approach was this way:
Function submitme()
newwin = window.open _
("","myNewWin2" ,"width=500,hei ght=300,toolbar =0,scrollbars=
1,resizeable=0, titlebar=0,menu bar=0,status=1" )
window.setTimeo ut "document.frm1. submit()",500
End Function

This works, however, since my confirmation of a successful
submission is just a few lines of text, I would like to
display the whole thing one page. Thanks for the help.

- doug
-----Original Message-----
Set the target of the form to the name of the iframe I believe will work.
"doug" <do******@adelp hia.net> wrote in message
news:1a******* *************** ******@phx.gbl. ..
OK ... how would I post a form to an iframe? - doug
-----Original Message-----
If you want to make a link load something in an iframe

use:

<a href="page.html " target="myframe ">Click here</a>
(Where myframe is the name of the iframe)

if you have a link inside the iframe that you want to

load the next page in
the iframe too, just leave out the target="" part

Gram

.

Jul 19 '05 #5
I haven't tried this, but I think it should work....

<form action="page_yo u_want_to_post_ to.asp" method=post
target=your_ifr ame_name>
Jul 19 '05 #6
mtr26
1 New Member
Everyone's responses are correct. Here is a sample.

Contents of theForm.php
Expand|Select|Wrap|Line Numbers
  1. <!-- the iframe -->
  2. <iframe src='formHandler.php' frameborder="0"  name="theIFrame" />
  3.  
  4. <!-- form posting to iframe -->
  5. <form method='post' action='formHandler.php' target='theIFrame'>
  6. <input type='text' value='Random text'>
  7. <input type='submit'>
  8. </form>
  9.  
  10.  
Contents of formHandler.php
Expand|Select|Wrap|Line Numbers
  1. <!-- print out time and all the post vars -->
  2. <?
  3.     echo time() . "\n";
  4.     print_r($_POST);
  5. ?>
  6.  
I just realized this is an asp forum. But I'm sure you clever asp guys can translate the formHandler to somethin asp-ish.
Jun 23 '06 #7
help is needed
1 New Member
I was wondering how a link could open an mp4 video in an iframe and specify its size.

Expand|Select|Wrap|Line Numbers
  1. <a href="file:///C|/Documents and Settings/Owner/My Documents/My Music/iTunes/iTunes Music/_Robot Chicken/Adult Swim/StarWars.mp4" target="_video">StarWars</a>
my iframe is called '_video'. Also, I don't know what the different tags for an iframe may be so my error may be there.
thanx
Jun 28 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
23541
by: Troy | last post by:
Hello- I have a website that uses a custom built webserver to serve the pages. (Please don't ask me why my boss had his own web server written). I am displaying a log of information that is an unknown number of rows. This is currently displayed in a table. The table is generated by some code that we had to write (thank you custom webserver) so that the webserver will parse HTML files and fill in the tags we created with some data...
4
7619
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I fill the iframe with content (<body> tag and so on and also insert a <div> tag, inbetween is the content that should be modified). Now if the event "overflow" or "underflow" is triggered the iframe
2
47339
by: Templar | last post by:
Hi i'm bothering with such problem... I must dynamic create an Iframe, and then put som raw HTML into it. But I can't. When I create iframe, I can't access its properties. Here's the coe snipplet: //************************************* //*************************************
9
1798
by: Robin Becker | last post by:
Is there any way to get an IFRAME to do a POST without altering the browser window's history? I can achieve dynamic data loading using GET via the iframe's contentWindow.location.replace method, but that isn't suitable for large requests. -- Robin Becker
1
1934
by: Targa | last post by:
I have a form that I submit to an asp page. The asp page contains an iframe that needs to receive the form results too. How can I submit the form to both the asp page and the iframe at the same time? Thanks!
7
4865
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+ doesn't seem to have the problem. I'm doing: this.iframe = document.createElement( 'iframe' ); this.iframe.id = this.id + 'wh'; this.iframe.style.display = 'none';
3
8037
by: Yourself | last post by:
Hi, I'm trying to post data to PayPal for a shopping cart, basically I want to replicate a form like the following, but create the variables dynamically from code behind: <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="seller@designerfotos.com"> <input type="hidden" name="item_name"
1
8134
by: Z1P2 | last post by:
I would like to gradually resize an iframe in an onmouseover event. I can easily do it with an image, but when I try to do it with an iframe, it doesn't do anything. So first of all, is it possible to gradually zoom an iframe, and if so, what am I missing? Here is the script I am trying to manipulate, between the head tags: <script language=JavaScript> /**** adjust these two parameters to control how fast or slow
0
1507
by: johnw182 | last post by:
Ok, I have a asp.net project. Everything works great. HOWEVER, this project was made to be called from within a frame or iframe. When being used within the iframe the user gets a blank frame when clicking certian buttons. Here is the code for the iframe. <iframe src="http://www.website.com/?cid=A195E1A9-A5D7-4046-89A4-1C00D4F81E35" id="frameName" frameborder="0" width="550" height="750"></iFrame> Here are the steps taken to reproduce.
0
8808
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8712
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9077
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4465
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4727
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3159
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.