[
Lists Home |
Date Index |
Thread Index
]
Hi Chiusano
I have made the code in a XSL stylesheet already, I have written the code
below to make it easier to understand.
I use a JavaScript that automatically inserts the input fields, so I can’t
be sure of how many elements I am going to pass.
Can I access the DOM and extract the values from there?
Kind regards
John
>From: "Chiusano Joseph" <chiusano_joseph@bah.com>
>To: John Stubbe <johnstubbe@msn.com>
>CC: xml-dev@lists.xml.org
>Subject: Re: [xml-dev] Parsing the structure of a form as XML content
>Date: Sat, 17 May 2003 15:20:48 -0400
>
>John,
>
>You should start with an XSLT stylesheet.
>
>Kind Regards,
>Joe Chiusano
>Booz | Allen | Hamilton
>
>John Stubbe wrote:
> >
> > Hi
> > I am stuck with a Form parsing problem.
> > I am building a dynamic form creator system, and my problem is that I
>would
> > like to send the whole structure of the form to a server as XML.
> > Is this possible? I have tried to make a small example below. Does
>anybody
> > know how I can do this?
> >
> > Thanks in advance
> >
> > Best regards
> >
> > John
> >
> > <form action="#">
> > <input type="text" value="someValue" />
> > <br />
> > <select>
> > <option>value1</option>
> > <option>value2</option>
> > <option>value3</option>
> > </select>
> > <br />
> > <textarea>Some text form a text area</textarea>
> > <br />
> > Check1: <input type="checkbox" name="check1" value="1">
> > Check2:<input type="checkbox" name="check1" value="2" checked>
> > Check3:<input type="checkbox" name="check1" value="3">
> > <br />
> > radio1<input type="radio" name="radio1" value="1">
> > radio2<input type="radio" name="radio1" value="2">
> > radio3<input type="radio" name="radio1" value="3">
> > <br />
> > <input type="Submit" value="submit" onclick="alert('submit XML')" />
> > </form>
> >
> > I would like to recive someting like this:
> >
> > <?xml verson="1.0" ?>
> > <form>
> > <text>someValue</text>
> > <select>
> > <option>value1</option>
> > <option selected="true">value1</option>
> > <option>value2</option>
> > </select>
> > <checkbox name="check1">
> > <check value="1">Check1</check>
> > <check id="2">Check2</check>
> > <check id="3">Check3</check>
> > </checkbox>
> > <radiobuttons>
> > <input value="1">radio1</input>
> > <input value="2">radio2</input>
> > <input value="3">radio3</input>
> > </radiobuttons>
> > </form>
> >
> > _________________________________________________________________
> > Nem, sjov og hurtig chat med vennerne med MSN Messenger
> > http://messenger.msn.dk
> >
> > -----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> >
> > The list archives are at http://lists.xml.org/archives/xml-dev/
> >
> > To subscribe or unsubscribe from this list use the subscription
> > manager: <http://lists.xml.org/ob/adm.pl>
><< Chiusano_Joseph.vcf >>
_________________________________________________________________
Nem, sjov og hurtig chat med vennerne med MSN Messenger
http://messenger.msn.dk
|