[thelist] Reload parent frame from iframe?

Chris at globet.com Chris at globet.com
Sat Apr 1 02:36:44 CST 2006


Frank

[..]

> A client fills out a form; if they enter the same first name, 
> last name and email address, an iframe appears with a login 
> box below. When I correctly complete the UN and PW the iframe 
> reloads with the updated page. I've tried all kinds of 
> combinations so that the PARENT page reloads. I've tried a 
> whole bunch of approaches.
> 
> I've tried things such as if (window != top) 
> top.location.href = location.href; or top.location.href='url 
> to jump to';  with no success. This should work easily in 
> conventional frames I imagine, but with the iframe it doesn't seem to
> 
> Can anyone suggest a better approach?

You don't need javascript - just set the value of the "target" attribute
of the form in the document referenced by the iframe to "_top".

Chris Marsh
Web Developer
http://www.globet.com/
Tel: +44 20 8246 4804 Ext 828
Fax: +44 20 8246 4808

Any opinions expressed in this email are those of the individual and not
necessarily the Company. This message is intended for the use of the
individual or entity to which it is addressed and may contain
information that is confidential and privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please contact the
sender immediately and delete it from your system.  




More information about the thelist mailing list