You are here: Re: read csv file in iframe as text file « HTML « IT news, forums, messages
Re: read csv file in iframe as text file

Posted by Andy Dingley on 09/29/49 12:00

On 15 Jan, 07:16, sukhm...@gmail.com wrote:

> I am trying to load a csv file in Iframe element. I just want to
> load it as a text file.

Configure your web server so that it serves this file with a Content-
type (MIME type) of "text/plain". This should then be displayed by
the browser. If the content-type is text/csv, application/csv etc.,
then any copies of Excel on the user's desktop are likely to try and
display it instead.

If you can't change the content-type header for .csv in this
directory, just try renaming the file to .txt instead. That will
nearly always cause the server to serve it as text/plain.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация