Quote:
Originally Posted by L a r r y
I performed a search on your search engine, and got the grandoldteam domain name, but then I hit the Back button once and saw the search results under your ToffeeSearch domain. Maybe you can employ some kind of Javascript ...
|
Here is another take on that Javascript thought: I just got through visiting the site again and performed a search.
As before, the grandoldteam domain name came up, but then I did a Back button press and saw your toffeesearch domain come up, still with the search results displayed.
I then visited a search result page and saw the correct results.
I also visited the page, performed the search and then hit back button twice to return to the search box with my search term still showing, ready to submit.
If we use Javascript to manipulate the browser's history, we can have these desired results:
Visit toffeesearch.com
Enter a search term and submit.
Get kicked back one page behind the scenes, and see the search results under the toffeesearch.com domain.
So I looked for a back button code and found code that uses a form and an onclick event to take the visitor back when he clicks a button on the page.
From
http://javascript.about.com/library/blback.htm :
Code:
<form><input type="button" value=" <-- BACK "
onclick="history.go(-1);return false;" /></form>
We need the part about "history.go(-1);return false;" and execute that function only if the browser history is on the grandoldteam site. So do a Javascript equivalent of
IF $pointer="grandoldteam" THEN
"history.go(-1);return false;"
END IF
That is BASIC syntax that I was using from my days on a Radio Shack Color Computer that I used in this example.
If you need, go into any number of Javascript tutorials for the specifics on how to do Javascript. I have not done Javascript for years myself, so I am not up on the proper syntax of the ideas that I have just presented.
I see that you did get your search box fixed for a white background since my first visit. I hope this helps point you in the right direction for the balance of your question.