Re: Sending an action to a page inside a frame

by "Steve Mount" <steve(at)saltyrain.com>

 Date:  Thu, 12 Oct 2000 17:11:48 -0400
 To:  "Peter-Paul Koch" <gassinaumasis(at)hotmail.com>,
"Danny Griffin" <danny(at)tillmanallengreer.com>
 Cc:  <hwg-techniques(at)mail.hwg.org>
 References:  valueweb
  todo: View Thread, Original
The problem is that the window you have open is not a part of the frame, so
referencing one of the frames in the frameset ... well, you can't, because
all the windows are no connected.

However, if the form's window was opened by one of the frames, you CAN
reference the frameset.  I've used JavaScript for this, so it is not
foolproof, since that can be turned off.

window.opener -> refers to the "opener".  If the opener is a frame in a
frameset, then you can refer to another frame in the frameset this way:

window.opener.top.framename

Example:

window.opener.top.frame1.location = url;

-------------------------------------------------------------
Steve Mount, Software Engineer            steve(at)saltyrain.com
Home Site                            http://www.saltyrain.com
US Constitution Online          http://www.usconstitution.net
Clear your Soul            http://www.anonymousconfession.com
Manager, HWG Logo Team                     http://www.hwg.org

----- Original Message -----
From: "Danny Griffin" <danny(at)tillmanallengreer.com>
To: "Peter-Paul Koch" <gassinaumasis(at)hotmail.com>
Cc: <hwg-techniques(at)mail.hwg.org>
Sent: Thursday, October 12, 2000 2:07 PM
Subject: Re: Sending an action to a page inside a frame


> I thought that would work too but it doesn't.  That simply opens a new
> window containing the fmResults.asp page.  T
>
> I've also tried this:
> <form name="fmSearch" method="post" action="frameset.asp"
TARGET="framename">
>
> That opens a new window with the frameset page but the results page is
> blank when it should contain data.
>
> Any other suggestions?
>
> At 05:36 PM 10/12/2000 +0000, you wrote:
>
> >>For example, I have a page (search.asp) that contains the form:
> >><form name="fmSearch" method="post" action="fmResults.asp">
> >
> ><form name="fmSearch" method="post" action="fmResults.asp"
TARGET="framename">
> >
> >ppk
> >
> >
> >
> >
> >_________________________________________________________________________
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> >Share information about yourself, create your own public profile at
> >http://profiles.msn.com.
> >

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA