|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HTML form element and XML
Hi,
using HTML/javascript, i have created a form using which the user can make selections. i have used mostly the <select> tag. in one such select tag i have included an text file that is displayed as soon as the particular option is clicked. now i want the user's selections to be written back as XML when the HTML form is submitted. if it is a single option like a name, i can represent it as say: <name> sam </name>, but since i have used an entire text file as option, how can i represent the file in the XML. can i do like this: <name> C:\my documents\file.txt </name> or is there any other way. thanks in advance |
|
#2
|
||||
|
||||
|
Pass your XML through a hidden HTML input field. You will have to write something to build the client-side XML in JavaScript. You can build it with Microsoft's XML ActiveX libraries, but that will tie you down to Internet Explorer.
Why can't you just submit some input fields to the server and then build the XML document using some server-side technology? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > HTML form element and XML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|