Hello All,
Thanks to many through CF-Talk and some CF buddies, I resolved the problem I
still have some tweaking to do but the following does display PDF files.
Thanks to all who responded.
<CFIF FileExists(ExpandPath("./Images/#Trim(Session.Client_ID)##Trim(Session
Insured_ID)#2.pdf"))>
<CFOutPut>
<a href="/Images/#Trim(Session.Client_ID)##Trim(Session.Insured_ID)#1.pdf
><font size="2" face="Arial"><strong>"View Page 1 of 2
</strong></font></a><img src="pdfdoc.jpg" width="117" height="79" border="0"
alt="">
<a href="/Images/#Trim(Session.Client_ID)##Trim(Session.Insured_ID)#2.pdf
><font size="2" face="Arial"><strong>"View Page 2 of 2
</strong></font></a><img src="pdfdoc.jpg" width="117" height="79" border="0"
alt="">
</cfoutput>
<CFELSE>
<CFOutPut>
<a href="/Images/#Trim(Session.Client_ID)##Trim(Session.Insured_ID)#1.pdf
><font size="2" face="Arial"><strong>"View Page 1 of 1
</strong></font></a><img src="pdfdoc.jpg" width="117" height="79" border="0"
alt="">
</CFOutPut>
</CFIF>
-------Original Message-------
From: [EMAIL PROTECTED]
Date: Thursday, June 12, 2003 07:52:16 PM
To: CF-Talk
Subject: RE: Displaying PDFs
As an addendum to this, if you want to spend time online learning HTML,
CSS and other technologies, www.w3schools.com has some GREAT basic
tutorials
> -----Original Message-----
> From: Philip Arnold [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 12:40 PM
> To: CF-Talk
> Subject: RE: Displaying PDFs
>
>
> > When displaying a .pdf file can that be accomplished by
> "calling" it
> > from a button or does it have to be "called" from a image -
> .jpg for
> > instance?
>
> A hyperlink is a hyperlink, whether you put it on text or
> image - it's basic HTML...
>
> Displaying a PDF only requires 2 things;
> 1) the user has Acrobat Reader on their computer
> 2) you link to the exact path of the PDF
>
> > onClick="window.location='http:\CVS3WP14.CFM'">
>
> This location is incorrect - for 2 reasons
> 1) the web uses forward slashes (/) not back slashes (\)
> 2) You're referring to "CVSWP14.CFM" as though it's a site, not a page
>
> > <a href="Page 1">
>
> This link is also incorrect - you're going to link to a
> folder, not a page, and it contains a space, which will break Netscape
>
> > face="Arial"><strong>"/Images/#Trim(Session
> > Client_ID)##Trim(Session.Insured_ID)#1.pdf"</strong></font></a>
> > It displays the code not the image. What am I doing wrong? TIA.
>
> It is displaying correctly for what you're asking it to...
>
>
> Sorry to be blunt (and possibly rude) about this, but I
> suggest you increase your HTML knowledge before you start
> trying to incorporate ColdFusion into your work...
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4