Hello:
I have a collection of files that have been shadowed to several world wide locations. Every location has a different subset of files.
It is not a web server.
At these remote sites, the user would like to search through their entire file directory (html files) for key terms - e.g. "Error Code : 3006" and be able to identify which html files contain the search term. I am restricted from using shareware etc. .
I'm hoping that the script " Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)" will work for me.
My problem is the URL.
I modified the script like so (not all script info shown):
And the result is:
If I remove the word "site:" from the code, I get a NaN response - I'm guessing the forward slashes aren't being interpreted correctly.
"function Gsitesearch(curobj){
curobj.q.value="site:"+YourDomain_proper+" "+curobj.qfront.value
}
"
Even though I have little-to-no knowledge of javascript, I have been tasked with coming up with a search tool for this private site, and I am not a programmer. But it is what it is and I am trying to make the best of it by smashing pieces of code together. Perhaps this isn't even the best way to go?
If this is an easy fix, please let me know. If you think this is not an appropriate tool and can suggest something else, I would be all ears.
Please be gentle.
Thanks.



Reply With Quote

Bookmarks