PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 12-02-2003, 07:06 AM   #1
rafarspd
Orange Mole
 
rafarspd's Avatar
 
Join Date: Nov 2003
Location: High Wycombe, Bucks. UK
Posts: 35
Question Returning from a html page to a php page.

The site url is 'http://www.rafars.org/'.

The PhpDig search url is 'http://cgi.rafars.org/php/S/search.php'

The above search url will call up the search and display page.
In the top left is a logo, this logo has as it's url 'javascript:history.back();'.
This works and will take you back to the calling *.html page.

If you do a search and then select a page from the search results you are taken to that page.
At the bottom (and in the top bar menu) of that page is a 'back' button with the same 'javascript:history.back();', this does not return you to the phpdig search page.

Any ideas please.
__________________
Regards
Bob Finch
rafarspd is offline   Reply With Quote
Old 12-02-2003, 07:21 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. This is because the selected page opens in a new window and so there is nothing to go back to when the 'javascript:history.back(); link is clicked. You could remove the target="_blank" to get the selected page to dispaly in the same window as the search results.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 12-04-2003, 03:23 AM   #3
rafarspd
Orange Mole
 
rafarspd's Avatar
 
Join Date: Nov 2003
Location: High Wycombe, Bucks. UK
Posts: 35
The answer is:- define('LINK_TARGET','_self'); //Target for result links

Why didn't I think of that!
__________________
Regards
Bob Finch
rafarspd is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show recent searches on a page other than list.php Gam-Man How-to Forum 1 06-04-2005 10:39 PM
web page thumbnails in result page JWSmythe How-to Forum 2 05-15-2004 01:11 PM
How to exclude part of page in a PHP file mario51 How-to Forum 2 12-17-2003 11:13 PM
Search box on html page rafarspd How-to Forum 4 12-04-2003 06:37 AM
reindex specific PHP page on change? ZAP How-to Forum 2 11-28-2003 06:35 PM


All times are GMT -8. The time now is 09:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.