//flex table opened by JP

Click to See Complete Forum and Search --> : Site Search on internal Intranet?


Woodcycl
11-25-2003, 08:41 AM
We are a small non-profit running IIS on NT4. I've built a small intranet site for our organization last summer.

What are my options for adding a site search feature to our internal site? Everything I've found thus far on the web appears to only work on accessible sites ... not on an intranet.

We don't have the latest and greatest hardware of software as you can see. But, if there are a couple options, I'd definitely look into them.

Not sure if it matters, but I'm using Dreamweaver for development.

Many thanks. :D

Brian

ubes
11-26-2003, 06:05 AM
You can have a look at tools like verity, but you've got to pay quite a bit for that.

You will need a tool that surfs your intranet and indexes your pages. (and finds keywords in the HTML). Those tools are called spiders

http://www.emu.edu.tr/english/facilitiesservices/computercenter/bookslib/How%20Intranets%20Work,%20by%20Preston%20Gralla/ch32.htm


An other approach is to make sure that all pages on your intranet are stored in a DB, at least the information and metadata. Then you can search the DB. You can use free open source content management systems for that. (PHPNuke, other CMS systems or groupware tools)

look for software like that on http://www.hotscripts.com


If you want to know more search a bit on google. There is zounds of info on this subject

rraehal
11-26-2003, 01:55 PM
You can use this. The drawback is that you must create the search database manually.

Put this in the head section of your html document:
<script language="JavaScript1.3" type="text/javascript" src="tip_form.js"></script>

Put this in the body of your html document:
<form name="tip_Form" onsubmit="search_form(tip_Form);return false">
<input type="text" name="d" style="position: absolute; left: 10; top: 57; width: 170" class="main">
<input type="submit" value="Go" style="position: absolute; left: 188; top: 55; width: 75" class="button">
</form>
<p>&nbsp;
</div>


Save this text as "tip_form.js"
-------Satrt below this line ------------------------------

// ---------- script properties ----------


var results_location = "results.html";


// ---------- end of script properties ----------


function search_form(tip_Form) {
if (tip_Form.d.value.length > 0) {
document.cookie = "d=" + escape(tip_Form.d.value) + "; path=/";
window.location = results_location;
}
}

------ End Above this Line ------------------------

Save this text as "tip_data.js"
-------Satrt below this line ------------------------------

var s = new Array();

s[0] = "Page name 1^URL 1^description^keywords";
s[1] = "Tips^intranetcolo/khameleon/tips.html^Khameleon Tips Page^tip, tips, hint, cheat, help";

------ End Above this Line ------------------------

Modify tip_data.js to be the search database for your page. You can add other search strings by modifying the s values to s[2], s[3] etc....

Save the attached text file as tip_search.js

I did not write this script. I found it on the net somewhere. I simply place the js files in the folder on the webserver as the html document that uses them.

rraehal
12-16-2003, 05:40 PM
Here is the missing file results.html attached in plain text.

I hope this solves the problem for you wood.

Woodcycl
12-16-2003, 06:06 PM
Thanks rraehal! :t

Woodcycl
12-17-2003, 09:08 AM
Hi rraehal,

I need to download the tip_search.js (or .txt) file again as I don't have it. The link in your original post doesn't work for some reason. Can you email it to me? See your PM.