Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Simple search box - where will it work?
Old 11-26-2008, 10:06 PM Simple search box - where will it work?
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
I use a very simple search box/function on my blog - just a few lines of html - which works very well.

I presumed I could simply take that code and insert it into a forum I run, but although the search box displays and operates okay, it returns a forum fault page that says 'Woooops! Document not found! Go back to home page'

The forum already has a search function, but users have to navigate to another page to reach it. I wanted to do this so that the search box was always there in the sidebar.

Sorry if this is a neive question, but why won't it work like it does on my blog? If it helps the code is shown below

Quote:
<form id="searchthis" action="/search" style="DISPLAY: inline" method="get"><input id="search-box" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 10px; MARGIN: 0px 0px 0px 0px; BORDER-LEFT: #cccccc 1px solid; COLOR: #777777; BORDER-BOTTOM: #cccccc 1px solid" value="Search" name="q" size="25" type="text/"/></form>

Last edited by Billy; 11-26-2008 at 10:07 PM..
Billy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-27-2008, 05:09 AM Re: Simple search box - where will it work?
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
You will have to make sure that your form's ACTION attribute is set to the same as the normal search form's. Also you must ensure that you pass all the information that that page is expecting - there may be hidden fields that you must pass through too.
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 11-27-2008, 09:33 AM Re: Simple search box - where will it work?
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
Thanks, stoot. So is all that something I can discover myself, or would that data only be available to the owners of the site that provides the forums - in this case runboard.com ?
Billy is offline
Reply With Quote
View Public Profile
 
Old 11-27-2008, 11:05 PM Re: Simple search box - where will it work?
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
I've now ammeded this code so that the form's ACTION attribute is set to the same as the normal search form's.

When I use the forum's default search box, the same url is displayed, regardless of the search query, but despite me inserting this url into the ACTION attribute field, it still doesn't work.

Now when I try to use my own search box and hit return, I just get taken to the forum's default search box/page.

What do I need to do so that when I use my own search box, I'm taken to the RESULTS page? I know stoot has answered this, but I didn't understand anything beyond him telling me to change the form's action attribute.

Any more help would be very much appreciated.

Last edited by Billy; 11-27-2008 at 11:09 PM..
Billy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Simple search box - where will it work?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92731 seconds with 12 queries