Strange <B> behaviour??

r.j.michell
Posts: 12
Joined: Tue Feb 27, 2001 8:38 am

Strange <B> behaviour??

Post by r.j.michell »

Hi there:

Using Webinator V2.55 I've found that some query results that form part of the HTML <title> result in <B> tags being inseeted into the URL to that page:

If the query is "email" and one of the page results contains the string "email" in it's <title>, webinator seems to insert <B></B> tags around that string in the URL, so upon clicking it, it obviouisely returns a 404 error:

Error, the page: /blah/blah/<B>email</B>.html can't be found.

Does anyone know what could be causing this behaviour? I have striped ALL <b> and <B> tags from the newsearch script and it still does it!??

Cheers all.
Russ
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Strange <B> behaviour??

Post by Kai »

The query highlighting in the search script highlights the title of the document, so the link will appear bold, but the actual URL in the <A HREF> should not be marked up in the stock search script.

The <mm> and </mm> tags in the search script control query highlighting. Make sure that any edits you've done to the script have not moved an <mm> *before* the <A HREF=...> tag, which would turn on highlighting in the url. Note that <mm> and </mm> do not have to balance, ie. an <mm> called earlier in the script may have turned on highlighting.

The easiest way to fix this is to put an </mm> before the <A HREF...> and an <mm> after.
r.j.michell
Posts: 12
Joined: Tue Feb 27, 2001 8:38 am

Strange <B> behaviour??

Post by r.j.michell »

Many thanks Kai, that did the job!

Cheers,
Russ