471,119 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

Save Xml

how can i save xml.

if i have an xml file on a server, lets say a dvd collection. and i have a
form that gets information for a new dvd and i append this dvd to the dom.
This i can do no problem so far using javascript the only thing that i can
not do is save the changes this is easy in vb.net and c# but seeing as i
have to work with the server its a whole new world. I dont want to have to
use asp or anything that requiers expensive software and or ides. If it can
be done with jscript this would be great. or does this sort of thing depend
on the server itself?

Thanks for the help please feel free to email me with any thoughts and or
suggestions @ pa**********@sbcglobal.net

WStoreyII
Jul 23 '05 #1
7 2061
On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
how can i save xml.

if i have an xml file on a server, lets say a dvd collection. and i have a
form that gets information for a new dvd and i append this dvd to the dom.
This i can do no problem so far using javascript the only thing that i can
not do is save the changes this is easy in vb.net and c# but seeing as i
have to work with the server its a whole new world. I dont want to have
to use asp or anything that requiers expensive software and or ides. If
it can be done with jscript this would be great. or does this sort of
thing depend on the server itself?

Thanks for the help please feel free to email me with any thoughts and or
suggestions @ pa**********@sbcglobal.net

WStoreyII


You do understand that JavaScript runs on the client? If you want the
changes to be permanent, they must be stored on the server. PHP, Perl,
and Java (either as Servlets or JSP) are all free. Check your host to see
which of these technologies they allow.

HTH,
La'ie Techie
Jul 23 '05 #2
Yes,
i do know that it is a client side and that is why i was tyring to figure
out how i do save it the problem is that i dont right now have a server and
would like to figure out how to do it so that i can decide which technology
i am comfortable with and find a server that will use it?

WStoreyII
Thanks again

"La?ie Techie" <laie@win_remove_get_nospam_solutions.com> wrote in message
news:31******************************@news.teranew s.com...
On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
how can i save xml.

if i have an xml file on a server, lets say a dvd collection. and i have a form that gets information for a new dvd and i append this dvd to the dom. This i can do no problem so far using javascript the only thing that i can not do is save the changes this is easy in vb.net and c# but seeing as i
have to work with the server its a whole new world. I dont want to have
to use asp or anything that requiers expensive software and or ides. If
it can be done with jscript this would be great. or does this sort of
thing depend on the server itself?

Thanks for the help please feel free to email me with any thoughts and or suggestions @ pa**********@sbcglobal.net

WStoreyII


You do understand that JavaScript runs on the client? If you want the
changes to be permanent, they must be stored on the server. PHP, Perl,
and Java (either as Servlets or JSP) are all free. Check your host to see
which of these technologies they allow.

HTH,
La'ie Techie

Jul 23 '05 #3
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?= wrote on 27 jun 2004 in
comp.lang.javascript:
On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
how can i save xml.
if i have an xml file on a server, lets say a dvd collection. and i
have a form that gets information for a new dvd and i append this dvd
to the dom. This i can do no problem so far using javascript the only
thing that i can not do is save the changes this is easy in vb.net
and c# but seeing as i have to work with the server its a whole new
world. I dont want to have to use asp or anything that requiers
expensive software and or ides. If it can be done with jscript this
would be great. or does this sort of thing depend on the server
itself?

Thanks for the help please feel free to email me with any thoughts
and or suggestions @ pa**********@sbcglobal.net


You do understand that JavaScript runs on the client? If you want the
changes to be permanent, they must be stored on the server. PHP,
Perl, and Java (either as Servlets or JSP) are all free. Check your
host to see which of these technologies they allow.


What about serverside javascript on an ASP platdorm, "free" if it is
includes in your host package.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #4

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?= wrote on 27 jun 2004 in
comp.lang.javascript:
On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
how can i save xml.
if i have an xml file on a server, lets say a dvd collection. and i
have a form that gets information for a new dvd and i append this dvd
to the dom. This i can do no problem so far using javascript the only
thing that i can not do is save the changes this is easy in vb.net
and c# but seeing as i have to work with the server its a whole new
world. I dont want to have to use asp or anything that requiers
expensive software and or ides. If it can be done with jscript this
would be great. or does this sort of thing depend on the server
itself?

Thanks for the help please feel free to email me with any thoughts
and or suggestions @ pa**********@sbcglobal.net
You do understand that JavaScript runs on the client? If you want the
changes to be permanent, they must be stored on the server. PHP,
Perl, and Java (either as Servlets or JSP) are all free. Check your
host to see which of these technologies they allow.


What about serverside javascript on an ASP platdorm, "free" if it is
includes in your host package.

i guess it does not really matter how i do it most of the webpage i think
that i can do on my side with the javascript and html the only thing i cant
figure out how to do is to save the xml so how is this done? despite what
media i end up using i still do not know how to do it .
thanks again
WStorey
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 23 '05 #5
"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:4Q*****************@newssvr27.news.prodigy.co m...

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?= wrote on 27 jun 2004 in
comp.lang.javascript:
On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:

> how can i save xml.
> if i have an xml file on a server, lets say a dvd collection. and i
> have a form that gets information for a new dvd and i append this dvd
> to the dom. This i can do no problem so far using javascript the only
> thing that i can not do is save the changes this is easy in vb.net
> and c# but seeing as i have to work with the server its a whole new
> world. I dont want to have to use asp or anything that requiers
> expensive software and or ides. If it can be done with jscript this
> would be great. or does this sort of thing depend on the server
> itself?
>
> Thanks for the help please feel free to email me with any thoughts
> and or suggestions @ pa**********@sbcglobal.net

You do understand that JavaScript runs on the client? If you want the
changes to be permanent, they must be stored on the server. PHP,
Perl, and Java (either as Servlets or JSP) are all free. Check your
host to see which of these technologies they allow.
What about serverside javascript on an ASP platdorm, "free" if it is
includes in your host package.

i guess it does not really matter how i do it most of the webpage i think
that i can do on my side with the javascript and html the only thing i

cant figure out how to do is to save the xml so how is this done? despite what
media i end up using i still do not know how to do it .
thanks again
WStorey


Put the resulting xml-string in a hidden form field on your page, and post
it
to the server. On the server side you must have a cgi-script that receives
the
xml, and save it. As others have said before; What kind of cgi you use on
the
server side doesn't matter. Python is free, Php is free, Tomcat w/Java is
free...

--
Dag
5826'15.9" N 00846'45.5" E
Jul 23 '05 #6

"Dag Sunde" <ds@orion.no-way> wrote in message
news:cF*****************@juliett.dax.net...
"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:4Q*****************@newssvr27.news.prodigy.co m...

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
=?UTF-8?b?TMSByrtpZSBUZWNoaWU=?= wrote on 27 jun 2004 in
comp.lang.javascript:
> On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
>
>> how can i save xml.
>> if i have an xml file on a server, lets say a dvd collection. and i
>> have a form that gets information for a new dvd and i append this dvd >> to the dom. This i can do no problem so far using javascript the only >> thing that i can not do is save the changes this is easy in vb.net
>> and c# but seeing as i have to work with the server its a whole new
>> world. I dont want to have to use asp or anything that requiers
>> expensive software and or ides. If it can be done with jscript this >> would be great. or does this sort of thing depend on the server
>> itself?
>>
>> Thanks for the help please feel free to email me with any thoughts
>> and or suggestions @ pa**********@sbcglobal.net
>
> You do understand that JavaScript runs on the client? If you want the > changes to be permanent, they must be stored on the server. PHP,
> Perl, and Java (either as Servlets or JSP) are all free. Check your
> host to see which of these technologies they allow.

What about serverside javascript on an ASP platdorm, "free" if it is
includes in your host package.
i guess it does not really matter how i do it most of the webpage i think that i can do on my side with the javascript and html the only thing i

cant
figure out how to do is to save the xml so how is this done? despite what media i end up using i still do not know how to do it .
thanks again
WStorey


Put the resulting xml-string in a hidden form field on your page, and post
it
to the server. On the server side you must have a cgi-script that receives
the
xml, and save it. As others have said before; What kind of cgi you use on
the
server side doesn't matter. Python is free, Php is free, Tomcat w/Java is
free...

where can a newbie like my self find a good tutorial that will teach me how
to do this?
thanks --
Dag
5826'15.9" N 00846'45.5" E

Jul 23 '05 #7
"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:k3*******************@newssvr29.news.prodigy. com...

"Dag Sunde" <ds@orion.no-way> wrote in message
news:cF*****************@juliett.dax.net...
"WStoreyII" <pa**********@sbcglobal.net> wrote in message
news:4Q*****************@newssvr27.news.prodigy.co m...

<snipped />
Put the resulting xml-string in a hidden form field on your page, and post it
to the server. On the server side you must have a cgi-script that receives the
xml, and save it. As others have said before; What kind of cgi you use on the
server side doesn't matter. Python is free, Php is free, Tomcat w/Java is free...
where can a newbie like my self find a good tutorial that will teach me

how to do this?
thanks

Well that depends on where you are...

* What (programming)languages do you know?
* What OS are your server running on?
* What kind of web-server are you running?
* Do you have full access to the server, or
is it hosted by someone else?

The snippet under is taken from one of my .ASP
pages written in vbscript:

...
Dim xmlData
xmlData = Request.Form("xmlData")

Dim oDom
oDom = Server.CreateObject("MSXML2.DOMDocument")
if not oDom.loadXML( xmlData ) Then
errorString = oDom.parseError.reason
Else
oDom.save("data/incoming/orders/temp.xml")
end if
...

--
Dag
5826'15.9" N 00846'45.5" E

Jul 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Alvo von Cossel I | last post: by
10 posts views Thread by GJP | last post: by
5 posts views Thread by C Watson | last post: by
3 posts views Thread by =?Utf-8?B?YXNkZg==?= | last post: by
reply views Thread by amrhi | last post: by
12 posts views Thread by =?Utf-8?B?RnJlZU5FYXN5?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.