You are here: Re: Posting Data Between Frames « All PHP « IT news, forums, messages
Re: Posting Data Between Frames

Posted by Tyrone Slothrop on 08/18/05 04:26

On 17 Aug 2005 17:33:21 -0700, "Raffi" <thegrizzzly@yahoo.com> wrote:

>I'm developing an application where the main page has an iframe that
>contains the form. The "Submit" button is located on the main page (not
>the iframe). Is it possible to get the form data from the iframe when
>the "Submit" button is pressed in the main browser page?
>
>Thanks,
>Raffi

Yes, but using JavaScript. Refer to the fields in the iframe thusly:

parent.iframe_name.document.form_name.field_name.value

It gets a bit more complicated with radios and checkboxes.

It would likely be easier to just submit the iframe rather than trying
to get the values.

<input type="button" value="Submit"
onClick="parent.iframe_name.document.form_name.submit()">

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация