CLOSE button or <a href""> link

CLOSE button or <a href""> link

am 22.12.2005 08:22:00 von Ron Piggott

I am building a Christian ministry web site.

One of the things we are establishing is an online offering basket to
receive donations. One of our disbursements is a benevolent fund to
help others.

I have a 'how we operate our benevolent fund' web page online at
http://www.actsministrieschristianevangelism.org/financial/h ow_we_operate_our_benevolent_fund.html

I also have this file set to load from our online offering basket web
page at
http://www.actsministrieschristianevangelism.org/financial/o nline_offering_basket.html as a pop up window by clicking a submit button.

What I really want to have happen is for the CLOSE WINDOW button to
appear when this is loaded as a pop up window from our
online_offering_basket.html file and if the web page is loaded directly
then the link to our Online Offering Basket appear for the user to get
back into our web site.

Do you know how to do this?

Ron

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: CLOSE button or <a href""> link

am 22.12.2005 14:47:58 von El Bekko

Ron Piggott (PHP) wrote:
> I am building a Christian ministry web site.
>
> One of the things we are establishing is an online offering basket to
> receive donations. One of our disbursements is a benevolent fund to
> help others.
>
> I have a 'how we operate our benevolent fund' web page online at
> http://www.actsministrieschristianevangelism.org/financial/h ow_we_operate_our_benevolent_fund.html
>
> I also have this file set to load from our online offering basket web
> page at
> http://www.actsministrieschristianevangelism.org/financial/o nline_offering_basket.html as a pop up window by clicking a submit button.
>
> What I really want to have happen is for the CLOSE WINDOW button to
> appear when this is loaded as a pop up window from our
> online_offering_basket.html file and if the web page is loaded directly
> then the link to our Online Offering Basket appear for the user to get
> back into our web site.
>
> Do you know how to do this?
>
> Ron



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: CLOSE button or <a href""> link

am 22.12.2005 16:55:20 von Neil Smth

At 07:18 22/12/2005, you wrote:
>From: "Ron Piggott (PHP)"
>Reply-To: ron.php@actsministries.org
>To: PHP DB
>Content-Type: text/plain
>Date: Thu, 22 Dec 2005 02:22:00 -0500
>Message-Id: <1135236120.4014.20.camel@localhost.localdomain>
>Mime-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Subject: CLOSE button or link
>
>
>What I really want to have happen is for the CLOSE WINDOW button to
>appear when this is loaded as a pop up window from our
>online_offering_basket.html file and if the web page is loaded directly
>then the link to our Online Offering Basket appear for the user to get
>back into our web site.
>
>Do you know how to do this?


Yes, and this is a client side javascript problem unless you create
the popup page using a PHP script. AFAIK from your file paths, it's
HTML so PHP (and indeed, DB "databases", the subject of this
discussion group) don't apply here.

You need to run a short snippet of javascript to determine if there's
a "window.opener" object : That will point back (and have a
..location.href property) of the opening page. I'd check for



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php