473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.com/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 2993
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.com/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*****@agricoreunited.com>
comp.lang.javascript 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.com/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.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

"Randy Webb" <Hi************@aol.com> wrote in message
news:L8********************@comcast.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.com/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
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,...
3
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...
5
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...
3
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...
6
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...
0
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"...
2
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...
3
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...

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.