Copy link to clipboard
Copied
Hello,
need some help, I am trying to build a search box so when someone searches for a name on our page it will find, kind of like when you search by ctrl F
does any one already have pre-existing code build?
I try using a couple of snips from bootsnip but seems it doesn't work for whatever reason
Copy link to clipboard
Copied
a simple request to your database containing the title is good enought... just think to wrap you search query by a %% pair to open an in between word.
Copy link to clipboard
Copied
you can have some more details there
Copy link to clipboard
Copied
You'll need to get your content indexed into a searchable database and connect your search form to a related search engine. You can use Goolge's search API or if you prefer, another 3rd party service like Freefind. Or you could buy Zoom desktop search engine.
Copy link to clipboard
Copied
it is sometimes not useful to take out semi-trailers when the simple trunk of a car can be enough.... without any deterioration for the OP request, it is impressive the volume of data that mysql can manage when the text fields are simply indexed by the internal attribute on full text
Copy link to clipboard
Copied
I could be wrong but I'm willing to bet the OP's site is static HTML and he doesn't have a MySQL database to query. That's why I mentioned Google, Freefind and Zoom.
Copy link to clipboard
Copied
you probably right...
Copy link to clipboard
Copied
Hi
I guess not explaining well..
<Moderator: Removed image as it contained personal info>
this is what I am looking for.. please see image.
Copy link to clipboard
Copied
You have my answers above. What you're attempting to do won't work in all browsers. Here's why
Window.find() - Web APIs | MDN
Copy link to clipboard
Copied
How does anyone know what name to search for - I mean what's going to happen if someone searches for 'Puff the magic dragon'?
Usually you would have a list of employee names associated with the company (that looks like what you are trying to do from your image) then have a details pages for each employee which you can link to from the list.
Or is that not what you are trying to do..........maybe just trying to search for any word?
Copy link to clipboard
Copied
In this sense, one should be taken into account that the request can also be geolocalised, or based on a profiling user system, or respond to preferences explicitly entered by the user, or take into account the Internet user's visit history... or...
Copy link to clipboard
Copied
jQuery Search: Tipue jQuery Site Search Plugin