...

View Full Version : File indexing



StanleyTan
06-01-2009, 08:44 AM
hi all,

i will like to ask, if there's anyway for me to do file indexing for .html files?
if there is, can u please guide me and let me have a headstart?

thanks!

effpeetee
06-01-2009, 09:46 AM
hi all,

i will like to ask, if there's anyway for me to do file indexing for .html files?
if there is, can u please guide me and let me have a headstart?

thanks!
Not quite sure what you mean. Can you give us more information.

There is much help here. (http://exitfegs.co.uk/Sources.html)

Frank

StanleyTan
06-01-2009, 09:49 AM
oh what i mean is, how am i suppose to capture keywords from my html files. so as to when searching for files, it will be made easier. i will just have to go through the keywords.

effpeetee
06-01-2009, 09:56 AM
oh what i mean is, how am i suppose to capture keywords from my html files. so as to when searching for files, it will be made easier. i will just have to go through the keywords.
Is this the sort of thing you mean.

Click here. (http://exitfegs.co.uk/Sources.html)

It always helps if you show us your code, so that we can see what you are aiming for.

Frank

StanleyTan
06-01-2009, 10:32 AM
var s = new Array();

s[0] = "JSE^form.html^Enter JSE in the example above ...^open source, free, client side";
s[1] = "JSE DOCUMENTATION^doc.txt^JSE is a client-side local site search engine. Written entirely in JavaScript ..^ faq, docs, instructions";
s[2] = Testing^test.html^this is just a test file, testing 123^test, world";



the above code is written in my .js file call test.js.
so each time i want to search, the search function will go through the array and search through those words in orange. so im thinking if i can dynamically push the keywords, title into the array. but first i have to know how to grab the data.

effpeetee
06-01-2009, 10:45 AM
Have a look here. (http://www.nsftools.com/misc/SearchAndHighlight.htm)

This thread may also be of use. (http://www.codingforums.com/showthread.php?t=167085&page=2) . I have been on a similar quest.

Frank

StanleyTan
06-03-2009, 02:36 AM
hmm, that's more of highlighting the words. i get what u are trying to show me. but im to do like a search engine, to search for html files in a folder.
it will acts like any search engine, after searching it will display out etc.

(3) results found.
____________________________________________
Result a
Result b

and its to search by the html file indexes, so im thinking of how to do it.
im able to do the search like the code i shown above, but im not able to do it dynamically. :(

or any method to grab the html meta tags and input into js dynamic array?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum