I have a page set up so that when a user logs in, they're allowed to
click links to view images or documents.
I have a pop-up and resize function set to work, but this is only going
to work for .jpg and .gif images (that's all; we're going to use to keep
it fairly simple).
For everything else, I'd rather just have a "simple" link so that if a
person chooses to view a PDF, download an .eps, or even RTF docs.
That said, I'm failing miserably with my code.
Here's what I have:
<cfoutput>
<CFIF #CMFileName# & "" IS NOT "">
<CFSWITCH EXPRESSION="RIGHT(#CMFileName#,3)">
<CFCASE VALUE="jpg,gif">
<LI Class="bullet"><a href="##" class="NavyCopy"
onClick="MM_openBrWindow('clientItemView.cfm?CN=#clientName#&CMFN=#C
MFileName#','clientImage','width=1024,height=768')">#CMFileText#</a>
</LI>
</CFCASE>
<CFDEFAULTCASE>
<LI Class="bullet"><a
href="clients/#clientDirectory#/#CMFileName#"
class="navycopy">#CMFileText#</a></LI>
</CFDEFAULTCASE>
</CFSWITCH>
</CFIF>
</cfoutput>
So far, the links are only work for the CFDEFAULTCASE, and I'm not sure
what I'm missing. Anyone have any insight?
Thanks,
Russ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.