473,809 Members | 2,758 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 26970
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
23545
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
7622
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
47349
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
1802
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
1945
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
4872
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
8041
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
8138
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
1510
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
9721
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
9601
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
10635
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5550
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
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
3013
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.