473,698 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IFrame and form inside - what happens?

I know, they are bad, so please dont't just tell me that I should not use
it...

So, assume I have a page MyPage.

MyPage has an IFrame in it with
'src=http://www.MyDomain.co m/Test.php?id=24'

This page on the other hand has a form inside.

What should happen when the form submits?

TIA,

Tom
Jul 23 '05 #1
3 3014
Tom Szabo wrote:
I know, they are bad, so please dont't just tell me that I should not use
it...

So, assume I have a page MyPage.

MyPage has an IFrame in it with
'src=http://www.MyDomain.co m/Test.php?id=24'

This page on the other hand has a form inside.

What should happen when the form submits?

TIA,

Tom


How is this a JavaScript question? And what are "they" and why are "they
bad"?

Anyway, an -iframe- is just a window object, which has as -document- object
as a property, which has a -forms- collection.

If the form on the document in the window that is the iframe has no -target-
attribute and it's submitted, the results of the form submission will appear
in the window it started in (the iframe).

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
Tom Szabo wrote:
I know, they are bad, so please dont't just tell me that I should not use
it...
Whats bad? What should you not use?

http://jibbering.com/faq/#FAQ2_3
Paragraph 2, Sentence 2.
<quote>
Use the Subject: of your post to indicate the type of problem you have,
but include the question *in the body as well*.
</quote>
So, assume I have a page MyPage.

MyPage has an IFrame in it with
'src=http://www.MyDomain.co m/Test.php?id=24'

This page on the other hand has a form inside.

What should happen when the form submits?


The data that is in the form is collected by the browser and sent to the
server. The server processes that data and sends the results back.

What does this have to do with Javascript? It is easily tested in less
time than it would have taken you to post the question.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

"Randy Webb" <Hi************ @aol.com> wrote in message
news:L8******** ************@co mcast.com...
Tom Szabo wrote:
I know, they are bad, so please dont't just tell me that I should not use it...


Whats bad? What should you not use?

http://jibbering.com/faq/#FAQ2_3
Paragraph 2, Sentence 2.
<quote>
Use the Subject: of your post to indicate the type of problem you have,
but include the question *in the body as well*.
</quote>
So, assume I have a page MyPage.

MyPage has an IFrame in it with
'src=http://www.MyDomain.co m/Test.php?id=24'

This page on the other hand has a form inside.

What should happen when the form submits?


The data that is in the form is collected by the browser and sent to the
server. The server processes that data and sends the results back.

What does this have to do with Javascript? It is easily tested in less
time than it would have taken you to post the question.


Sorry,

It was 4 am in the morning or about, so I was getting a little tired :-(

Also the BAD stuff came from the intention to avoid half a dozen replies
telling me that I should not use frames.

May be not this newsgroup, but I can often see people asking questions about
how to do this or that and the person who replies only occupied with pushing
his opinion through to the originator of the question, most often not having
a clue about the big picture

So this is what I wanted to avoid....

Regards,

Tom
Jul 23 '05 #4

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

Similar topics

7
26965
by: doug | last post by:
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
3
14441
by: Ryh | last post by:
I have the following scritpt. It hides div layer when mouse is out of the div layer. Inside DIV I have IFRAME box. Unfortuantely it does not work in Mozilla or IE 5.5. It hides div when cursor is inside IFRAME. NOte that IFRAME is inside DIV so it should not hide DIV. It Works fine in IE6.0. Could any one help? Example:
5
15940
by: Peroli | last post by:
Hi all, I have an iframe as stated below. When i initiate the function "open_frm()" everything is working as i expected. When the document is loaded, i click on a link in the iframe, with posts some data to the server (to url "myscript.peroli?q=something") and gets back with results. Everything happens inside the iframe, no interaction with parent window. But when i do this 2 or more times, mozilla and IE is giving me a
3
3990
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then IsPostBack=False by now!. The ASPX is opened via client side script (into an iFrame) inside a .HTM file (as ASPX postback causes problems in a modal internet explorer dialog if not in an iFrame!) Anyone know how to get around this - i need to...
6
9385
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I can use it there. Thanks in advance :) Paul
0
380
by: Chukka | last post by:
I have iframe inside Firstpage.aspx page like this... <IFRAME id="IFrame_One" style="WIDTH: 1029px; HEIGHT: 425px" name="IFrame_Documents" marginWidth="0" marginHeight="0" src="http://int.comp.com/secure/dir/toLoadpage.aspx" frameBorder="0" scrolling="yes"></IFRAME> When I open Firstpage.aspx, the page inside the iframe (toLoadpage.aspx) loads twice (confirmed from logs, it's not just graphical refresh). The frame literally loads the...
2
11568
by: cybervigilante | last post by:
I have a table inside an iframe that has paypal buttons in table cells. Each button is a Form. (The table has to be in an iframe to protect it from a containing CMS, which buggers the forms otherwise) When I click on one of the buttons I go to paypal, but the resulting PayPal page is still inside the iframe and too small, so you have to scroll. I need to get out of the iframe but still go to paypal. What is the javascript I'd use? I...
3
4057
by: Asterbing | last post by:
I want to know the length in pixels of a document embedded in a iframe. The way I go seems to work under IE but not under Firefox (about other browsers I'll see later). Here is my page for testing : 1) The page which will appear in the iframe is : <html> <head>
1
3062
by: Anderh | last post by:
hi all, I have using iframe for call php file called , I wnat submit this form inside iframe from parent form in main page but I codnt make it. <input type="button" id="s" name="s" value="submit ID" onClick="javascript:submitPer();"> <iframe name="form11" src="perSearch.php" frameborder="0" width="680" height="150"></IFRAME><br> this is javascript function which should submit the form inside iframe function submitPer(){ ...
0
8685
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
8612
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
9171
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
9032
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
8880
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
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
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
4373
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
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.