• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Open a new txt file w/ javascript from a browser

AntiFreze

Golden Member
Hello,

Basically, I am using a form for our clients to populate an HTML email. They hit submit, the form is filled out with what they indicated, then they save this.

This is using ASP. Now they want the option to do this with a text file, since not all email clients allow images/styling/etc. I need to use those form fields, to populate a text file.

I'm trying to avoid using the client's PC with activeX (since they need IE and drivers), as well as the server to create, modify, maintain the text files.

Does anyone know a way to open a new window in javascript, and change the actual header to text type? I've been searching the internet to no avail.

Thank you.
 
Why not just post the data back to the server and have it create the text file? You can do that in ASP.net. Not sure about classic ASP.
 
Not sure if this is what you are trying to do, but I was looking for a way to write a file from Javascript on the local client machine and I found this solution, but it is IE only. It doesn't require ActiveX on the client side. Not sure if it actually works because I needed something that worked in Mozilla, which this code does not. Never tried it in IE.
 
Back
Top