[
Lists Home |
Date Index |
Thread Index
]
- From: "Paul R. Brown" <prb@uic.edu>
- To: <xml-dev@xml.org>
- Date: Wed, 1 Mar 2000 08:24:30 -0600
I thought about this a little more last night, and there are some advantages
to using XML on the client side.
If you want to use a form to collect multiple pieces of disparate data and
send them to the server simultaneously, you can do it by successively adding
to an XML document in a hidden form element. (Perhaps you have different
subforms on different DIVs or LAYERs...) Using XML is certainly superior to
a delimited format for debugging, readability, and reusability (although not
for total size!), and XML is also superior to storing the forms, e.g., in an
array, and document.write-ing a new form to a separate document or DIV and
then submitting it.
- Paul
> -----Original Message-----
> From: owner-xml-dev@xml.org [mailto:owner-xml-dev@xml.org]On Behalf Of
> THOMAS PASSIN
> Sent: Tuesday, February 29, 2000 11:32 PM
> To: xml-dev@xml.org
> Subject: Re: ANNOUNCE: New release of X-Tract
>
>
> ashutosh dandavate wrote
> > Hi,
> > I am looking out for a xml doc generator, at the
> > client browser after client enters data in fields,
> > that data i want to send to web server as xml doc
> > can xml script be used for that purpose? or any
> > other method you know of?
> > Thanks
> > Ashutosh
> >
> >
>
> I favor about doing it with Javascript in the client browser. You could
> store the generated XML in a hidden field in another form and
> POST the form
> to send the xml to the server. With Javascript, you could even create
> classes for every data field, if you wanted, that generate the xml. Some
> people say they don't like Javascript because some browsers don't have it,
> but some browsers don't do forms either. And "efficiency" won't be
> important because a human-usable form to collect data won't be
> that long or
> complicated.
>
> Tom Passin
>
>
>
> ******************************************************************
> *********
> This is xml-dev, the mailing list for XML developers.
> To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
> List archives are available at
> http://xml.org/archives/xml-dev/threads.html
> ******************************************************************
> *********
>
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************
|