Re: read csv file in iframe as text file



On Jan 15, 1:18 am, sukhm...@xxxxxxxxx wrote:
Hi,
  I am trying to load a csv file in Iframe element. I just want to
load it as a text file.
however when i load the file in iframe it asks to open the file and
finally opens it with excel in IE window itself. If i save the save
file as .txt it is being read properly.I need to save the file in csv
format only so that it can be edited externally with excel easily.
Later on i want to display the read csv file in javascript and do some
processing on it.
  Does any know how do this. The basic problem is to stop IE from
invoking excel to open csv file and instead read the file as text.

Following code works for .txt file

<iframe name="loader" id="frm" width="1000" height="300"
style="visibility:hidden;display:none" src="Book1.txt"></iframe>

and when i use this line it tries to open the file using excel which i
don't want.

<iframe name="loader" id="frm" width="1000" height="300"
style="visibility:hidden;display:none" src="Book1.csv"></iframe>

Any suggestions?
  Thanks
Sukhmeet

Bart is correct. However, why not just change the file extension?
Book1.xxx, for example. Or don't use a file extension at all. Later on
why you want to open it up in excel, just go into excel and open the
file. You may have to change the file type on the open file dialogue
window. Just don't allow Excel to create a new file extension
association with 'xxx' or whatever you use.
.



Relevant Pages

  • Re: CSV Downloads
    ... Open/Save As prompt when you click your bank statement (.CSV file). ... > am presented with a file download box. ... On the XP machine I select CSV and Excel is opened ... >> opens in IE, just do File/Save As and save it as .xls or whatever. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: in which folder can you save a .CSV file?
    ... For sure you saved as an Excel *.xls workbook but get the "cannot access the ... Excel opens and the info gets copied to an Excel worksheet. ... open it and re-save as a *.csv to that folder. ... To save your email address book as a *.CSV file you must do that though Oulook, ...
    (microsoft.public.excel.misc)
  • Re: in which folder can you save a .CSV file?
    ... For sure you saved as an Excel *.xls workbook but get the "cannot access the ... Excel opens and the info gets copied to an Excel worksheet. ... open it and re-save as a *.csv to that folder. ... To save your email address book as a *.CSV file you must do that though Oulook, ...
    (microsoft.public.excel.misc)
  • Re: Excel 2000 & NAV 2003
    ... > when Excel exits and restored when Excel opens. ... when I immediately close the CSV file. ... > "Jim Rech" wrote in message ...
    (microsoft.public.excel.misc)
  • Re: unicode CSV files
    ... through the import data routine for every file that gets created, ... Import & Export of a CSV file depends on the Regional & Language Options in ... Which version of Excel do you have? ... is selected it opens OK. ...
    (microsoft.public.excel.programming)