You are here:  » Java, predictive search text like ebay

Support Forum



Java, predictive search text like ebay

Submitted by mally on Tue, 2008-11-11 18:36 in

Hello David

Is it possible to add code which is like predictive text in the search bar, so as you enter the product title, suggestions appear which you can select?

I've seen this on ebay and some other sites, just wondering if you have any idea how its done?

I think its Java but not 100% sure

Thanks

Mally

Submitted by support on Wed, 2008-11-12 09:53

Hi Mally,

These sort of things use "AJAX" - Asynchronous JavaScript and XML techniques to send a request to the server as letters are entered into the search box, receive a response, and then populate a drop-down with that response.

The only caveat is that it requires an extremely fast server side search infrastructure, and I'm not sure many hosting accounts + MySQL would really be suitable, even when properly indexed as the Price Tapestry product tables are. It may be viable on a niche site - if I get some downtime i'll look into it but it's quite a lot of work despite quite a simple appearance in functionality...

Cheers,
David.

Submitted by mally on Fri, 2008-11-14 21:48

Ok, thanks David

Cheers

Mally