Thanks. I really dont want to dynamically add cfif statements to all hrefs
within the text block and then write that to the database, I'd rather keep
it straight html. The problem is that these text blocks would be set up by
non-technical users which is the same reason I can't have them add the
onclick event to their links.
However, since this is really a small need, I can always resort to that.
Thanks
John
-----Original Message-----
From: Fuon See Tu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:29 AM
To: CF-Talk
Subject: Re: add on-click event to href within block of text
just do aCFIF
Pooh Bear
Web App Developer
Picture Below (chicks dig my head!)
<HTML>
<HEAD></HEAD>
<BODY>
<IMG SRC="http://www.geocities.com/kickerazn_2000/sniffles_138x92.jpg">
</BODY>
</HTML>
>From: "John Lucas" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: add on-click event to href within block of text
>Date: Wed, 29 Aug 2001 00:18:29 -0500
>
>I have a block of dynamic text within a site in which I would like to add
>an
>onclick event to all href tags that are not from a specified domain.
>
>If the domain within the href is mydomain.com, i do not want to add the
>onclick. If the domain is not mydomain.com, I want to add the onclick.
>Is
>it possible to do this with a regexp and rereplace?
>
>TIA,
>John
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists