If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Search feature in an HTML page

I have some HTML files in my Server, and a master HTML file containing Search Textbox and Submit button. User will be entering a keyword in that Textbox, if the word exists, it must show that word highlighted and the URL where it is present. Else display word not found. Can this be done in Ajax/ JS/ DOM ? Please help me.

you can load all the files into javascript using ajax and search them locally.
this defeats one advantage of having the search done by a server: saving the serving of un-needed files.
however, it does allow the main functionality: finding the content the user wants.

another plus on doing it client-side is that it is much faster to execute, allowing results to be shown as you type, and unlike a server, it can work without an internet connection.

it really depends on how much "stuff" you got to search. if you can send it in a dozen request totalling a couple hundred KB, i'd say go for it.
if it's going to take 5323 files weighing 50MB, you need to use a server.