Hey Gilles

Sorry for the huge delay, but here is an example of the code that the
noindex_start/end tags didn't work on:

<!-- ignoreThis --><span class="IndexTable"><b><a href="someLink.php"
target="_top">Link address</a><br />
</b></span>
<span class="IndexTable">&nbsp;&nbsp;&nbsp;&nbsp;<a href="someLink.php"
target="_top">Link address</a><br />
</span>
... skip a few ...
<span class="IndexTable">&nbsp;&nbsp;&nbsp;&nbsp;<a href="someLink.php"
target="_top">Link address</a><br />
</span>
<span class="IndexTable">&nbsp;&nbsp;&nbsp;&nbsp;<a href="someLink.php"
target="_top">Link address</a><br />
</span>
<!-- /ignoreThis -->

Sorry, but I had to strip out the names of the links (and urls) for security
reasons. The link names (descriptions) were just text. The link addresses
were one of two types (in different examples) - one was absolute from the
server root; e.g. /developers/documentation/... and the other was relative,
e.g. ../../images/...

I initially tried using the default "<!--noindex_start-->" and
"<!--noindex_end-->", but replaced them because not having a space between
the dash and first comment character can cause problems with some older
browsers. They didn't help anyway.

What I ended up doing was putting the comments inside the link on each line.
(Not a problem, because this is all dynamically generated).

I'm using 3.1.6

Take care,

Antun

====================
Laszlo Systems, Inc.
1040 Mariposa St
San Francisco, CA 94107
tel: (415) 865 2907
fax: (415) 865 2914
mob: (510) 282 1007

http://www.laszlosystems.com/







> -----Original Message-----
> From: Gilles Detillieux [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 06, 2002 7:35 AM
> To: Antun Karlovac
> Cc: ht://Dig mailing list
> Subject: Re: [htdig] Help Please
>
>
> According to Antun Karlovac:
> > It took me a bit of time to figure this one out.
> >
> > The noindex comments don't like encasing lots of HTML code, so
> I had to do:
> >
> > <a href="item.html"><!--noindex_start-->Item
> > description<!--noindex_end--></a>
>
> This comes as a big surprise to me.  The HTML parser shouldn't care what
> code occurs between the noindex_start string and the noindex_end string.
> It's supposed to search for the first occurrence of a noindex_end string
> after a noindex_start string is encountered, and remove everything in
> between, without attempting to parse it.
>
> Can you provide an example of HTML code which doesn't get stripped out
> when properly enclosed by <!--noindex_start--> and <!--noindex_end-->?
>
> --
> Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
> Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
> Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to