I can just see it!!!! (esp. the twitch)
Benjamin

ps... know how you feel... been through that kind of thing too many times
myself

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 6:50 AM
Subject: Re: Download Text file - SOLVED???


> You thought THAT was funny.  We just got around to testing it in I.E.
> 5.x on a Mac and lo and behold, it wasn't working!  It was trying to
> download the actual .cfm template that was being loaded in the browser
> so now we're trying to do a work around.  When we were discussing this
> page in our planning meetings all 4 of us came to a very quick
> conclusion that we'll just make a link to the file and be done with it.
> When I struggled with it, the senior developer, in the manner of John
> Wayne coming to the rescue, said "just give it to me, I'll have it fixed
> in like 10 minutes..."  A day later and we're still trying to make the
> damned thing work.  He called the client yesterday, while I was out,
> begging the client to let us change the format but the client said no
> way! Then Brendan handed me the solution.  It took me all of 10 minutes
> to adapt the code and voila!  Then the senior developer, the John Wayne
> guy who was more like Jerry Lewis after dealing with this, began his
> testing on all of the different platforms and OS's and CRASH!!!  The
> solution? Use JavaScript to detect what they're using and then giving
> them the appropriate instructions.  Now, not only have I lost those four
> hairs, but now I have developed a twitch in my left eye.  See ya in the
> loony bin!!!!
>
> Michael Corrigan
> Programmer
> Endora Digital Solutions
> 1900 S. Highland Avenue, Suite 200
> Lombard, IL 60148
> 630/627-5200 x-136
> 630/627-5255 Fax
>   ----- Original Message -----
>   From: Benjamin Falloon
>   To: CF-Community
>   Sent: Thursday, January 17, 2002 1:33 PM
>   Subject: Re: Download Text file - SOLVED!!
>
>
>   LOL!!!
>
>   ----- Original Message -----
>   From: <[EMAIL PROTECTED]>
>   To: "CF-Community" <[EMAIL PROTECTED]>
>   Sent: Friday, January 18, 2002 5:07 AM
>   Subject: Re: Download Text file - SOLVED!!
>
>
>   > Much thanks to all for your help.  I implemented Brendan's idea and
> it
>   > worked.
>   >
>   > We had to save these things in text files because they are press
>   > releases and had to be kept that way.  The client wanted a "Download
>   > now" button that was actually a hyperlink that was supposed to
> simply
>   > download the file.  The client was also very insistent that the page
> not
>   > submit to a "Confirmation" page and wanted it to look as if it "just
> did
>   > it without bouncing through a whole bunch of pages"  So, I used a
> cfif
>   > block to look for a certain parameter and passed the successful
> value
>   > back through the same template and then executed the code as Brendan
>   > suggested.  So it ended up like this.
>   >
>   > <cfif thisvariable eq "true">
>   >     <cfheader NAME="Content-Disposition" VALUE="inline;
>   > filename=whateveryouwanttheresultingfilenametobe.txt">
>   > <cfcontent type="application/superrandomnoway"
>   > file="#expandpath("test.txt")#" deletefile="No">
>   > </cfif>
>   >
>   > ..
>   >
>   > <a
>   >
> href="http://www.thispage.com/thispage.cfm?thisvariable=true";><img
>   > src="images/downloadimage.jpg"></a>
>   >
>   > Thanks again everyone for your help.  I actually still have four
> hairs
>   > left on my head.  I plan on growing them really long and then doing
> a
>   > combover.
>   >
>   > Michael Corrigan
>   > Programmer
>   > Endora Digital Solutions
>   > 1900 S. Highland Avenue, Suite 200
>   > Lombard, IL 60148
>   > 630/627-5200 x-136
>   > 630/627-5255 Fax
>   >   ----- Original Message -----
>   >   From: Brendan Avery
>   >   To: CF-Community
>   >   Sent: Tuesday, January 15, 2002 6:30 PM
>   >   Subject: RE: Download Text file - HAHAHA
>   >
>   >
>   >   <cfheader NAME="Content-Disposition" VALUE="inline;
>   >   filename=whateveryouwanttheresultingfilenametobe.txt">
>   >   <cfcontent type="application/superrandomnoway"
>   >   file="#expandpath("test.txt")#" deletefile="No">
>   >
>   >
>   >   i chose application/superrandomnoway cause it's unlikely to launch
> any
>   >   related apps.
>   >
>   >   -----Original Message-----
>   >   From: Todd [mailto:[EMAIL PROTECTED]]
>   >   Sent: Tuesday, January 15, 2002 15:14
>   >   To: CF-Community
>   >   Subject: Re: Download Text file
>   >
>   >
>   >   I guess you could use <cfcontent> and set some mime type that
> would
>   > normaly
>   >   cause a download prompt.
>   >
>   >   Todd
>   >
>   >   ----- Original Message -----
>   >   From: <[EMAIL PROTECTED]>
>   >   To: "CF-Community" <[EMAIL PROTECTED]>
>   >   Sent: Tuesday, January 15, 2002 4:47 PM
>   >   Subject: Download Text file
>   >
>   >
>   >   > OK, I know this is an HTML 101 question, but I can not for the
> life
>   > of
>   >   > me remember how to do this.  How can I download a text file by
>   > simply
>   >   > allowing the user to click on a link?  Normally, you just treat
> it
>   > like
>   >   > any other non html file and the browser will invoke the explorer
>   > window
>   >   > and give you the change to "Save as..." but the .txt file just
> shows
>   > up
>   >   > in the browser.  Anyone? Bueller? Bueller?
>   >   >
>   >   > Thanks all,
>   >   >
>   >   > Michael Corrigan
>   >   > Programmer
>   >   > Endora Digital Solutions
>   >   > 1900 S. Highland Avenue, Suite 200
>   >   > Lombard, IL 60148
>   >   > 630/627-5200 x-136
>   >   > 630/627-5255 Fax
>   >
>   >
>   >
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to