Save an xml file
Hi,
I want to save an xml file on the clientside using javascript.Hpw can I do
this?.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
[164 byte] By [
anjana] at [2007-11-9 14:54:25]

# 1 Re: Save an xml file
"anjana" <tmmet@hotmail.com> wrote:
>
>Hi,
>I want to save an xml file on the clientside using javascript.Hpw can I
do
>this?.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
SAVING ANYTHING ON CLIENT SIDE IS IMPOSSIBLE.
This will violate the basic idea of web. Instead, downloading of a file is
possible, which includes a conscent from the user - that he/she wants to
save the file on his/her computer.
Downloading is very sinple, create a file:// hyperlink to anything, you want
to be downloadable:
<A HREF="file://./mydata.xml">Download Now</A>
That's it.
bye
Rohit
# 2 Re: Save an xml file
IE5 specfic, see the userdata behaviors, these will save client side an xml
doc, that you can pick up later
anjana wrote in message <38e922e9$1@news.dev-archive.com>...
>
>Hi,
>I want to save an xml file on the clientside using javascript.Hpw can I do
>this?.Any ideas/suggestions will be greatly helpful for me.Thanks in
advance.
TC at 2007-11-11 23:35:03 >

# 3 Re: Save an xml file
That is not entirely true. You can persist some information on the client.
For more information, see <a href="http://msdn.microsoft.com/workshop/Author/persistence/overview.asp">http://msdn.microsoft.com/workshop/Author/persistence/overview.asp</a>
Brian
"Rohit Wason" <rohitw@futuresoftindia.com> wrote:
>
>"anjana" <tmmet@hotmail.com> wrote:
>>
>>Hi,
>>I want to save an xml file on the clientside using javascript.Hpw can I
>do
>>this?.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
>
>SAVING ANYTHING ON CLIENT SIDE IS IMPOSSIBLE.
>This will violate the basic idea of web. Instead, downloading of a file
is
>possible, which includes a conscent from the user - that he/she wants to
>save the file on his/her computer.
>Downloading is very sinple, create a file:// hyperlink to anything, you
want
>to be downloadable:
>
><A HREF="file://./mydata.xml">Download Now</A>
>
>That's it.
>bye
>Rohit
# 4 Re: Save an xml file
You can save anything on client computer if you ask permissions for it. What
makes this permission asking difficult is that netscape and ie have their
own security classes which allows to save a file. So the permission asking
is browser depended code.
You can find examples in netscape and ie sites.
"Brian McNamara" <bmcnamara@carolina.rr.com> wrote:
>
>That is not entirely true. You can persist some information on the client.
>For more information, see <a href="http://msdn.microsoft.com/workshop/Author/persistence/overview.asp">http://msdn.microsoft.com/workshop/Author/persistence/overview.asp</a>
>
>Brian
>
>"Rohit Wason" <rohitw@futuresoftindia.com> wrote:
>>
>>"anjana" <tmmet@hotmail.com> wrote:
>>>
>>>Hi,
>>>I want to save an xml file on the clientside using javascript.Hpw can
I
>>do
>>>this?.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
>>
>>SAVING ANYTHING ON CLIENT SIDE IS IMPOSSIBLE.
>>This will violate the basic idea of web. Instead, downloading of a file
>is
>>possible, which includes a conscent from the user - that he/she wants to
>>save the file on his/her computer.
>>Downloading is very sinple, create a file:// hyperlink to anything, you
>want
>>to be downloadable:
>>
>><A HREF="file://./mydata.xml">Download Now</A>
>>
>>That's it.
>>bye
>>Rohit
>
>
kimmo at 2007-11-11 23:37:01 >

