From: Garrett Smith on
Michael Haufe ("TNO") wrote:
> On Nov 26, 7:47 am, Richard Cornford <Rich...(a)litotes.demon.co.uk>
> wrote:
>
>> IE 6 has no support for data URLs, so it looks like you will need to
>> use server-side code.
>
> In IE6 you can use document.execCommand("SaveAs", null, "FileName");
>
> Here an example for saving files in IE 6:
>
> http://4umi.com/web/javascript/filewrite.php?txt=This+is+some+sample+text.%0D%0AThis+is+a+new+line.&filename=C%3A%5CMy+Documents%5Cfilename&ext=utf-8#

[snip]

The MSDN links in your article are broken. The correct links should be:

http://msdn.microsoft.com/en-us/library/ms536419%28VS.85,loband%29.aspx
http://msdn.microsoft.com/en-us/library/ms537418%28VS.85%29.aspx
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Thomas 'PointedEars' Lahn on
Michael Haufe ("TNO") wrote:

> Richard Cornford wrote:
>> IE 6 has no support for data URLs, so it looks like you will need to
>> use server-side code.
>
> In IE6 you can use document.execCommand("SaveAs", null, "FileName");
>
> Here an example for saving files in IE 6:
>
> http://4umi.com/web/javascript/filewrite.php?txt=This+is+some+sample+text.
%0D%0AThis+is+a+new+line.&filename=C%3A%5CMy+Documents%5Cfilename&ext=utf-8#

Joe User is not going to be able to type or to copy-paste the target file
path, though.


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: "Michael Haufe ("TNO")" on
On Nov 26, 5:36 pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote:

> Good one!
>
> Next step is to take both and create a cross-browser function and test
> it in as many browsers.
>
> Questions about your code:
> 1) why  use - document.body.insertBefore( w ); - instead of appendChild?
> 3) why use window.open?


The 4umi.com website is not my domain, only the thenewobjective.com
domain is.
From: kangax on
Garrett Smith wrote:
> Michael Haufe ("TNO") wrote:
>> On Nov 26, 7:47 am, Richard Cornford <Rich...(a)litotes.demon.co.uk>
>> wrote:
>>
>>> IE 6 has no support for data URLs, so it looks like you will need to
>>> use server-side code.
>>
>> In IE6 you can use document.execCommand("SaveAs", null, "FileName");
>>
>
> [snip]
>
> Good one!
>
> Next step is to take both and create a cross-browser function and test
> it in as many browsers.
>
> Questions about your code:
> 1) why use - document.body.insertBefore( w ); - instead of appendChild?

Perhaps, to avoid IE's "Operation aborted" error?
<http://support.microsoft.com/kb/927917>

--
kangax