|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
'permission deny' when i save to file .xml
hi all,
i have a XML document manage.xml as follow: <?xml version = "1.0"?> <MANAGE> <USER > <USERNAME>aa</USERNAME> <PASSWORD>aa</PASSWORD> </USER> </MANAGE> i use DOM to insert one more USER like this: <?xml version = "1.0"?> <MANAGE> <USER > <USERNAME>bb</USERNAME> <PASSWORD>bb</PASSWORD> </USER> <USER > <USERNAME>aa</USERNAME> <PASSWORD>aa</PASSWORD> </USER> </MANAGE> After that, i use Save method to save it (xmldoc.save("manage.xml") ) but i got an error : permission deny! i want to save it to the file 'manage.xml', what can i do? please help! Thanks. |
|
#2
|
|||
|
|||
|
Where is this code running? Client or server?
|
|
#3
|
|||
|
|||
|
This code is just running on one computer, not on network.
Thanks |
|
#4
|
|||
|
|||
|
Hehe. Ok, let me rephrase that. Is the code running in an ASP page (server), or is it javascript in an html page the browser is executing (client)?
|
|
#5
|
|||
|
|||
|
it is javascript in an html page.
Thanks |
|
#6
|
|||
|
|||
|
Ok. You can't actually save anything using javascript in an html page. The best you're going to be able to do is download the xml file to the client computer. You other option is to send the xml file to a java, php or asp page that will then save it on the server.
|
|
#7
|
|||
|
|||
|
Thank you very much..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > 'permission deny' when i save to file .xml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|