I think you're mistaking the purpose of the CFFTP tag. CFFTP allows Cold
Fusion to act as an FTP client; uploading, downloading, etc. files from a
remote FTP server. It does NOT act like CFFORM, CFINPUT, etc. which spit
out associated HTML equivalents.
I'm assuming you want to create a link to a file on a remote FTP site. In
that case, do not use CFFTP. Instead, simply write your A HREF as:
<A HREF="ftp://ftp.foo.com/bar/baz.txt">Click to download</A>
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
> -----Original Message-----
> From: David Adams [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:24 PM
> To: CF-Talk
> Subject: Encapsulating CFFTP within an A HREF is not respected
>
>
> For some reason, I cannot encapsulate a CFFTP tag within an A HREF.
> The result is an empty string, when I go to view source of the rendered
> HTML page. Any ideas?
>
> The following code does not work.
>
> <a href="<cfftp
> connection="myConnection"
> action="getfile"
>
> localfile="#getDirectoryFromPath(getCurrentTemplatePath())#\#url#"
> remotefile="/#url#"
> stoponerror="no"
> transfermode="binary"
> failifexists="no">
> ">#name#</A>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
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.