Another option is using Javascript to bind the "a" element onclick events.
It's super simple with both Dojo (the best javascript library on the face of the planet) and something a little more pedestrian, like jQuery. :D Generally the JS route doesn't require you to change as much stuff (and you can limit the bind to links within certain DIV elements and whatnot). :Den -- Nothing is so fatiguing as the eternal hanging on of an uncompleted task. William James On Mon, May 3, 2010 at 5:16 AM, Robert Nurse wrote: > > Hi All, > > I'm trying to come up with a regular expression for CF8 that finds links in > text and inserts a call to a pop up window in the on click event. I came up > with the following that works in Javascript: > > myStr.replace(/<\s*a\s+([hH][rR][eE][fF])\s*=/g, '<a > onclick="popwin(this.href); return false;" href='); > > I now need to convert this to something CF will use and I'm failing miserably. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333309 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

