|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Saving XML file on Client's side (PC)
I need to know if there's any way to save an XML file on the client's side/pc, like in his Internet Temporary Files directory. Thanks.
|
|
#2
|
||||
|
||||
|
Browser security constraints prevent files from being stored on a client's PC without the user's consent. You can have files saved on their PC, but it is an action that the user must initiate.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#3
|
|||
|
|||
|
I think I've got the same scenario as elandro.
I'm wanting to generate an XML file which the user can save to their local machine. The script I'm using is piping out a Content-Type: application/octet-stream tag so the user is (supposed to be) presented with the save dialog. Under Mozilla this works just fine and the user can choose where to save the document. However, Internet Explorer simply parses the document and spits it out to the screen, which isn't helpful. Renaming the Content-Type tag to something other than octet-stream or xml fixes this, but obviously, it isn't the most ideal solution. Has anybody else come up against this and found a way round it? Any help would be much appreciated. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Saving XML file on Client's side (PC) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|