Return Search Results on the Web Without Ugly Relevancy Boxes

As all of you may know about the little relevancy boxes that are displayed to the left of the search results. These are fairly ugly, and have been rumored to be optional in the next release, but have no easy way, now, to get rid of them. I've came up with a way of doing it combining JavaScript and Notes functionality.

First, you must have a $$Search template form created for the results. At the top of the form place the code <input type=hidden name=results value='***'>. For the value of the hidden HTML field, (***), place the $$ViewBody notes field. You must use single quotes around the field. This gets all of the results into a field that JavaScript can see and use.

Second, in the JS header, place the following code;

function results()
{
res=document.forms[0].results.value
var done="No";
list="";
i=0;

while (done!="Yes"){
begin=res.indexOf(' end=res.indexOf('>',begin)
if(begin==-1)begin=res.length
list+=res.substring(i,begin)
i=end+1
if(begin==res.length)break;
}
document.write(list)}

This runs through the HTML that displays the results and removes the image tags that display the little boxes. You can place this code anywhere on your form, as long as it is inclosed in <script language="javascript">...</script>.

Third, on the spot on your form where you want to display the results, place the call to the JavaScript function:

<script language="javascript">
results()
</script>

This was first published in November 2000

Dig deeper on Lotus Notes Domino Administration Tools

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close