473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Search Feature - How Did They Do That?

If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text to
initiate a search. The box is filled, by default with the text "Enter Part
Search Here". Do it and see what happens: enter some text, like "engine".
As you type into the box, another box appears and shows the closes matches
to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if this
is something I could easily incorporate/duplicate in my own Web sites or
not... either the way they did it or any other way that gets me the
same/similar result.

General direction?

Thanks!
Nov 19 '05 #1
5 1045
Merk,

Taking a look at their search.js page which is the javascript doing all the
work they are using the equivalent of AJAX (if it isn't ajax itself...)

Using Visual Studio.NET 2005's new AJAX objects you could do the same pretty
easily. If you're on .NET 2003 then there was just a post about some good
AJAX resources that are compatible with .NET 2003 posted by Karl Seguin in
the "Which AJAX library to use" post just a bit below this one.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Merk" <A@B.COM> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text
to initiate a search. The box is filled, by default with the text "Enter
Part Search Here". Do it and see what happens: enter some text, like
"engine". As you type into the box, another box appears and shows the
closes matches to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if
this is something I could easily incorporate/duplicate in my own Web sites
or not... either the way they did it or any other way that gets me the
same/similar result.

General direction?

Thanks!

Nov 19 '05 #2
- Either the list is short and some local javascript extract the needed
information from embedded data (array, hidden table etc...) and show the
relevant part.
- For big lists, the javascript code could call a server side page (witjout
posting the page but by using XMLHTTP, an hidden frame or whatever else
similar) and retrieve the needed information that then shows up.

If this is the "AS you type" part, you do have key events available....

Patrice
--

"Merk" <A@B.COM> a écrit dans le message de
news:eq**************@TK2MSFTNGP12.phx.gbl...
If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text to initiate a search. The box is filled, by default with the text "Enter Part
Search Here". Do it and see what happens: enter some text, like "engine".
As you type into the box, another box appears and shows the closes matches
to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if this is something I could easily incorporate/duplicate in my own Web sites or
not... either the way they did it or any other way that gets me the
same/similar result.

General direction?

Thanks!

Nov 19 '05 #3
I must say, it's very impressive !

--
Best Regards

The Inimitable Mr Newbie º¿º

"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@TK2MSFTNGP15.phx.gbl...
Merk,

Taking a look at their search.js page which is the javascript doing all
the work they are using the equivalent of AJAX (if it isn't ajax
itself...)

Using Visual Studio.NET 2005's new AJAX objects you could do the same
pretty easily. If you're on .NET 2003 then there was just a post about
some good AJAX resources that are compatible with .NET 2003 posted by Karl
Seguin in the "Which AJAX library to use" post just a bit below this one.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Merk" <A@B.COM> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text
to initiate a search. The box is filled, by default with the text "Enter
Part Search Here". Do it and see what happens: enter some text, like
"engine". As you type into the box, another box appears and shows the
closes matches to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if
this is something I could easily incorporate/duplicate in my own Web
sites or not... either the way they did it or any other way that gets me
the same/similar result.

General direction?

Thanks!


Nov 19 '05 #4
http://www.google.com/webhp?complete=1&hl=en Google did it a while
back......

"Patrice" <no****@nowhere.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
- Either the list is short and some local javascript extract the needed
information from embedded data (array, hidden table etc...) and show the
relevant part.
- For big lists, the javascript code could call a server side page
(witjout
posting the page but by using XMLHTTP, an hidden frame or whatever else
similar) and retrieve the needed information that then shows up.

If this is the "AS you type" part, you do have key events available....

Patrice
--

"Merk" <A@B.COM> a écrit dans le message de
news:eq**************@TK2MSFTNGP12.phx.gbl...
If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text

to
initiate a search. The box is filled, by default with the text "Enter
Part
Search Here". Do it and see what happens: enter some text, like
"engine".
As you type into the box, another box appears and shows the closes
matches
to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if

this
is something I could easily incorporate/duplicate in my own Web sites or
not... either the way they did it or any other way that gets me the
same/similar result.

General direction?

Thanks!


Nov 19 '05 #5
its pretty simple. in client script they keep an array of all the values,
and use dhtml to update a div with the matching results as you type. they
even do the sorting on the client side.
-- bruce (sqlwork.com)

"Merk" <A@B.COM> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
If you navigate to this URL, http://www.thebusco.com, you will see in the
upper left corner just below the masthead, a box where you can enter text
to initiate a search. The box is filled, by default with the text "Enter
Part Search Here". Do it and see what happens: enter some text, like
"engine". As you type into the box, another box appears and shows the
closes matches to the text AS you are entering..

I'm just totally dazzled and don't know enough about the Web to know if
this is something I could easily incorporate/duplicate in my own Web sites
or not... either the way they did it or any other way that gets me the
same/similar result.

General direction?

Thanks!

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been...
11
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will...
4
by: rh | last post by:
Hi, I'd like to add an incremental search to my windows form DataGrid that works like the one used in Windows Explorer. In Windows Explorer, when you type a character it jumps to the first item...
3
by: | last post by:
Hi!! can someone tell me where I can find some information to get this cool feature to hidde text as it's used in the ASP.NET Forums beta search ??? for example here: ...
3
by: Michael | last post by:
Hi, I have not implimented a search feature yet for a web site yet and wanted to get some advice. Most of the search tips I have seen so far only deal with searching html files or other web files....
2
by: DR | last post by:
How to search Team Foundation Server?
1
by: runway27 | last post by:
i want to implement a feature where a user searches with a keyword and search results are displayed according to the keyword or phrase entered by the user. following are the steps i want to...
4
by: NC | last post by:
On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote: Use an off-the-shelf search engine... I've used Sphider on a couple of occasions: http://www.sphider.eu/ Cheers, NC
14
by: S | last post by:
Any idea on how I would be able to do a search within C# that does ranges or words For example I want to search for Chicken in the string string s1 = "This is Great Chicken";
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.