Redirecting search results to iframe
Hi
I have installed phpdig to my site: http://www.aboutautism.org.uk/phpDig/search.php I have created a basic page with the form from the documentation page: http://www.aboutautism.org.uk/test.htm I have a search results page: http://www.aboutautism.org.uk/search.htm Is there a way in which I can target the search queerys from my form to appear in my results page? I would like to incorporate the form into my default template so that it is available on all pages. |
Does this thread get the results that you want?
|
Thanks, yes this has helped
Thank you.
The form is now posting correctly, but it still brings up the search results in a new window, I think my problem is that I am using iframes as opposed to normal frames. My form is thus: <form action="http://www.aboutautism.org.uk/phpDig/search.php" target="search_results_frame" method="post"> <input type="text" name="query_string" value=""> <input type="submit" name="search" value="Go"> </form> I have set $result['form_head'] = "<form target='search_results_frame' action='$result_page' method='post'> in the three locations within phpdig_functions.php as suggested. I have created a search page, search.htm which contains an <iframe> which I have called 'search' using the 'name' function. When I submit on my test page (test.htm) I need the search to appear within the <iframe> that exists within search.htm. Is this possible? Thanks Martin |
When I do a search at http://www.aboutautism.org.uk/search.htm I see the search results in a frame. When I click one the the search result links, the page opens in a new window. If it is the latter you want in the same window, look for LINK_TARGET in the config file.
|
Charter
Thanks for that - the links in the search page are now working much better I am however, still stuck with my search form that I wanted to incorporate on all of my pages (see www.aboutautism.org.uk/test.htm) Do you know if I can target my html search page ? The html search page is www.aboutautism.org.uk/search.htm Thanks for helping martin |
In test.htm find:
Code:
<form action="http://www.aboutautism.org.uk/phpDig/search.php" target="search.htm" method="post"> Code:
<script language="JavaScript"> Code:
if (ALLOW_RSS_FEED) { Code:
if (strlen($query_string) == 0 && isset($_COOKIE['query_string'])) { If these changes don't work, the above may need tweaking or you can make a template like those in the templates folder. |
Sorted!!!
Thank you very much - this worked perfectly and I will now replicate test.htm to my main template / other pages. Martin |
All times are GMT -8. The time now is 07:29 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.