Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / March 2006



Tip: Looking for answers? Try searching our database.

.txt file upload in coldfusion ...help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rere - 30 Mar 2006 20:40 GMT
I have an excel sheet that I saved as a  tab delimited file.  When I upload the
file the output comes out  unformated.
Instead of being lined up (like its saved)
a
b
c
it comes out in a row         a b c d  e g
I''ve also tried saving it has a csv but for some reason it throws an error
then I tried to upload it as an excel sheet and it throws in
error.
My mistake maybe very minor but I can't figure it out
the output  is <cfoutput>#tester#</cfouput>  Do I need to place anything
around my output so it will come out in the correct format>>
Not Nick - 31 Mar 2006 02:47 GMT
You mean that the content in the file becomes unformated in the browser?
The formatting from the text file will not render in a browser normally, there
is no <TAB> tag for instance and the chr(10) linefeed does not have any effect
in a browser since it is looking for a <br> telling it to make a new line.

BUT.

You can see the original formatting by using the <PRE> tag:

<cfoutput><pre>#tester#</pre></cfouput>

That should render spaces, tabs and linefeeds as it is in thext file.
rere - 31 Mar 2006 21:33 GMT
thanks for the help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.