Click to See Complete Forum and Search --> : Internal search engine: server or client-side??


MattOz
07-02-2003, 07:27 AM
Hi there,

I've been reading previous threads about how to set up a search engine which searches for pages within a web site.

Most people have indicated that server-side languages such as Perl and PHP are the way to go, as opposed to Javascript.

I am experienced with Javascript and was hoping to persue that option, but was wanting to know why most people prefer server-side scripts to do this. Is it because of the different ways that browsers interpret JavaScript?

Also, since I'm not familiar with server-side scripting, can anyone tell me where I can download scripts for this purpose.

Thanks,
Matt

luc83
07-02-2003, 01:52 PM
hi MattOz

I cant think of a way you could use javascript to search through a site..
server side scripting is defenitily the way to go. There's lot of good site where you can find ressource for ASP and PHP.

If you want to learn server side scripting, you should not start by trying to code a search engine.

PeOfEo
07-02-2003, 04:20 PM
I personally reccommend asp.net, If you have experience in vb its extremly easy to pick up.

ray12
08-18-2003, 01:51 AM
Searching a site with JavaScript is possible, but it requires having to download the entire index data (keywords, and all that information) for the script to 'search through' on the client-side. This isn't really an option for any sites with more than 10 pages - unless the website is for a local intranet or something.

Otherwise - as echoed by the other posts - server-side searching is the go.