[thelist] Parsing document server side (was Adding title with css)

Wesley Mason wes at pmason.karoo.co.uk
Thu Jun 24 09:09:27 CDT 2004

Hash: SHA1

Yes, parsing the link and adding the title value before sending it to 
the client.
Probably the best way to do this would be a regular expression, like 
parsing <a href="(.)*.pdf"> and replacing it with <a href="\1.pdf" 
title="PDF Doc"> or the like (*note*, just an example, definitely not 
tested and almost certainly won't work as is).
- --
Wesley Aaron Mason
(1st Vamp)
Weblog from nowhere: http://1stvamp.org/
Webcomic from somewhere: http://gfbowl.com/
Public PGP/GPG Key: http://1stvamp.org/stuff/pgp

On Jun 24, 2004, at 1:38 pm, Andreas Wahlin wrote:

> <The concern I'd have with using DOM scripting to place a title, would
> be another removal of semantic value for any robot parsing the text if
> it doesn't apply scripting changes before parsing content (plenty of
> possibility for this); this is where I'd recommend server side 
> scripting
> of some flavour (whatever floats your boat) to parse the links and add
> titles rather than client side (client side has many advantages and has
> it's place, but in such cases where it can detract from the usefulness
> or parseability of the document content, I believe it detracts highly
> from such use).>
> I'm not sure if I follow you entirely, but from what you write it seems
> it would be possible to scan the document server side, much as a client
> side javascript would accomplish, and so add title to all suitable 
> links
> before the documents final passing from the server to the client. Is
> this possible? If so, how? I'm using ASP (not .Net, with JavaScript
> syntax).
> Or do you mean something like having the document in a databes and
> scan/add content that way?
> Andreas
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
Version: GnuPG v1.2.4 (Darwin)


More information about the thelist mailing list