Sounds like he's also outputting this straight to HTML as well though.

My suggestion is to completely abstract the linking with javascript. For
example, on my family blog I've got a js function which allows me to use
plain ole HREF links:

<a href="slideshow.cfm?slide=58&gid=19"
onclick="popUp(this.href,'fixedScrolling',800,800);return false;"
target="slideShow">Click to see a larger photo</a>

There's no pound signs in it at all. Here's the function:

function popUp(strURL,strType,strHeight,strWidth) {
        var strOptions="";
        if (strType=="console")
strOptions="resizable,height="+strHeight+",width="+strWidth;
        if (strType=="fixed")
strOptions="status,height="+strHeight+",width="+strWidth;
        if (strType=="fixedScrolling")
strOptions="status,scrollbars,height="+strHeight+",width="+strWidth;
        if (strType=="elastic")
strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight
+",width="+strWidth;
        window.open(strURL, 'newWin', strOptions);
}

Hope that helps.
 

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 24, 2007 11:03 AM
To: CF-Talk
Subject: RE: Link Generator Tool

> This works fine when it's going into HTML text, but when it's going 
> into a cf form, the # throws off Cold Fusion. If I use a breaking ##, 
> that work for cf handling, but isn't right for HTML text.

I'm not sure what you mean by a "breaking ##", but if you simply use two
hashes instead of one within your CFOUTPUT, you should have one hash in your
generated HTML.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287045
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to