Click to See Complete Forum and Search --> : Generate .xml from asp form


Slon
03-01-2001, 04:16 AM
Hi, everyone,

I have to solve a problem and I would be very grateful to evryone who helps
me.

In IE5 I have to generate from a asp form a xml file and send it to the sever.
How can I do this - with a POST, GET methods or anything else?

Thanx in advance
Slon

Adriano
03-01-2001, 12:24 PM
You can use those but its better to use the Microsoft XMLHTTPRequest object
that also comes with IE5.

See MSDN for details.

"Slon" <svetmail@yahoo.com> wrote:
>
>Hi, everyone,
>
>I have to solve a problem and I would be very grateful to evryone who helps
>me.
>
>In IE5 I have to generate from a asp form a xml file and send it to the
sever.
>How can I do this - with a POST, GET methods or anything else?
>
>Thanx in advance
>Slon

Russell Jones
03-01-2001, 02:36 PM
In IE5, you can create the XML document using client-side script and string
concatenation, or you can create a DOMDocument object and use the DOM
methods and properties to build the document. You can send the resulting XML
by using a form tag containing a hidden input, setting the input's value
property to your XML string, and then posting it by submitting the form.
Alternatively, you can use the XMLHTTPRequest object to post the data.

Russell Jones
Sr. Web Development Editor
DevX.com


"Slon" <svetmail@yahoo.com> wrote in message
news:3a9e137a$1@news.devx.com...
>
> Hi, everyone,
>
> I have to solve a problem and I would be very grateful to evryone who
helps
> me.
>
> In IE5 I have to generate from a asp form a xml file and send it to the
sever.
> How can I do this - with a POST, GET methods or anything else?
>
> Thanx in advance
> Slon

tranhan
03-03-2001, 09:59 AM
Hi Slon,
You can use Javscript to create XMLDOM in Browser and create another XMLHTTP,
then you send that Object to server via XMLHTTP(May be POST, Or GET).
Nhan

Randy Williams
03-04-2001, 04:40 PM
"Slon" <svetmail@yahoo.com> wrote:
>
>Hi, everyone,
>
>I have to solve a problem and I would be very grateful to evryone who helps
>me.
>
>In IE5 I have to generate from a asp form a xml file and send it to the
sever.
>How can I do this - with a POST, GET methods or anything else?
>
>Thanx in advance
>Slon

Do some research on the XMLHTTP object (client side) at Microsoft's XML side
(www.microsoft.com/xml). It should work very nicely for your needs.