NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on February 18, 2013, 11:50:35 PM

Title: Progress CSV created problem with IE
Post by: terryd on February 18, 2013, 11:50:35 PM
IE8/IE9 Firefox/Chrome
using the Web72 example.
If I create a csv file using Chrome or Firefox the csv is created and I can either open or save it.
Using Internet explorer 8 or 9 I either get the attached screen message (1.jpg) stating that IE thinks that I have created an xls file, or  a message that the file cannot be found(2.jpg) ( the file name in the url  is $$$81657.csv) The image is one that I received from one of my clients.

To me this is a major problem since I cannot specify to the clients what browser to use because they are "walk ins" rather than direct clients and unfortunately they haven't had the privilege of viewing Bruce's webinar on NT7.
Is there anything I can do to sort this problem out?

[attachment deleted by admin]
Title: Re: Progress CSV created problem with IE
Post by: springguy on February 19, 2013, 03:50:21 AM
I've seen the same thing with IE, and found that when you get the page not found message, notice the url is correct.  If you hit the Enter key, the file will open up.  Not a solution but a work around that for my customers is OK.

Sounds like in your situation, it would not be workable.
Mike Springer
Title: Re: Progress CSV created problem with IE
Post by: kevin plummer on February 19, 2013, 04:59:10 AM
can you change the file extension to txt?
Title: Re: Progress CSV created problem with IE
Post by: terryd on February 19, 2013, 08:06:54 PM
Hi Mike
Yes everything is correct except IE appears not to have created a csv file. Thanks for your comments.
Title: Re: Progress CSV created problem with IE
Post by: terryd on February 19, 2013, 08:09:40 PM
Hi Kevin.
I could change the extension to txt butI would assume that the file would be  opened within the browser as text, rather than allowing the user to save the file with a name of their choice.
Title: Re: Progress CSV created problem with IE
Post by: kevin plummer on February 19, 2013, 09:13:21 PM
you may be able to do something by setting the Content-Disposition (ref book). The other possibility is to detect the browser and serve the file with an xls extension if IE.
Title: Re: Progress CSV created problem with IE
Post by: Bruce on February 20, 2013, 12:27:29 AM
Kevin is right - your best bet is to set the Content-Disposition.
The File Download example (40) - ServeDocument procedure has an example of this.

  p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&p_web.GetValue('name')&'"'

also, you'll notice in that procedure

  p_web.ReplyContentType = p_web._GetContentType(loc:fileName)


Cheers
Bruce