Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search image name and file on html files pages

Status
Not open for further replies.

Keendev

Technical User
Jan 23, 2006
106
PH
Hi guys,

i really need help on this one.

a gallery site needs a search functionality.
problem is they dont have a database, all are in a html file pages.

I need to work on the search by looking up on the jpeg file inside the html same w/ the image names.

is this possible on javascript? if yes.. i really need your help.

thank you in advance
 
Hi

Well, yes, is possible.
[ul]
[li]with [tt]XMLHttpRequest[/tt] objects download all the HTML documents which are part of the gallery[/li]
[li]parse the HTML documents and extract the [tt]img[/tt] tags and maybe related descriptions[/li]
[li]search through the extracted data and display the result[/li]
[/ul]
Sounds bad, but in fact will not be so brutally slow, because you will download only HTML documents without related images, styles and scripts.

But I think you already drawn the conclusion : better do it on server side.

Feherke.
 
Why not look at integrating something like Google Search into your pages?

You are then using the power of Google's indexing algorithms to search your own site.

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top