hey,
i would like to know, with a search (text) box, and with a drop menu, how can when a user drop down menu and choose another site, it changes the search to this site. Understand, very difficult to explain… like yahoo.When u make a search, then, you can choose to search, in all categories, or just the one categorie ?,
I don’t have an aswer for this, but I’d like some help with this too… I have a Search box on my main page, and I’ve been trying to get it to search my vbulletin board. So basically I want to be able to type “anything” in my search box on my main page, and then have it search my vbulletin board for that keyword. Can anyone help at all? I’ve tried all kinds of combinations of code. And also the actual <FORM> tab puts in a space underneath my search box that I do not want there…
Here’s some code using JavaScript to dynamically submit the form to a page, depending on what was selected in the select menu. This example assumes the pages you’re submitting to are on your own site. It would get more complex if you want to search different sites (i.e. Google, Yahoo, Download.com, etc.), because they use different names for their input field, which is used on the query string. Google uses the name ‘q’ for their search field, while Yahoo uses ‘p’, so their query strings are different:
ok, i can’t handle it anymore,
i was trying to put two options
vstorestuff and
vstoregifts, could u please do it for me, i tried for hours, and it never worked!
Custom coder, at your service
Well, I stole Scrubz’ code and modified it for you but the best way to learn anything koolbrian is to do it yourself.
There are PLENTY of Javascript resources that tell you how to do things like this. Search on Google for JavaScript and you’ll get about a hundered thousand
The ones that are colored have disapea in the code u gave me Retro!. Is that the source of the problem ?,
i’ve tried with/without them, still nothing!, Is there another javascript for it ?,
I’ve search but it gave me the code that u gave me, e.i bad one!
ok,
i am trying to make a search through my store[S]. But i should put many search boxes to search the in Different stores. As the search boxes will be at the right hand side of my site, there isn’t enough space. SO,
i imagined of doing ONE search text box, with ONE drop down menu to choose from the different stores to search. and when a user choose (for exemple) gifts in the drop down menu, it searches the text he inserted in the text box, around the store he chose from the drop down menu!.,
Simple. and the code that Scrubz gave me was the one i was looking for. But there is a problem. I changed the link of the <option value> tag with the ones of my store. In vain. It doesn’t work!, well it works, but when i search (for exemple) “flowers”, it was as if it searches for NOTHING, as if u typed nothing.
Have a look at http://www.areacool.f2s.com/search.html
. I think we should put in relation both of them, so as to insert well the code.
and also i think that the code colored in blue should be seen in the one of the drop down menu search.!!!