List of articles   choose language


Sending of hidden xml-tree by form



Agreements

tagattributecharacteristicstyle
new html-keywordslinealingpointdefault
values of new html-keywordssideromb
old html-keywordstdidlist
values of old html-keywordscircle
communication xmlsoundsyncpower
values of communication xmlnouser
keyboard and mouser commandenter

Hidden xml-data

Earlier we could send only hidden scalar (<input type="hidden">), but we can send whole XML-trees after introduction XML into data transfer. It's made so: XML-text between opening and closing tags hidden inside form will be sent to a server together with XML-text, generated by widgets.

<form>

<hidden>
  <xml_tag attribute=value>
    <xml_tag2 attribute2=value2>
      ...
    </xml_tag2>
  </xml_tag>
</hidden>

</form>

If tag hidden is inside tag multi, on which a radio-button (checkbox-button) refers

<table>
 <tr>
  <th rowspan="2"> you are: </th>
  <td> <input press="stud" type="radio"> student </td>
 </tr>

 <multi name="stud">
 <tr>
  <th> parents surname </th>
  <td> <input type="text" name="family"> </td>
 </tr>
 <tr>
  <th> home phone </th>
  <td> <input type="text" name="phone"> </td>
 </tr>

 <hidden>
  <xml_tag attribute=value>
   <xml_tag2 attribute2=value2>
    ...
   </xml_tag2>
  </xml_tag>
 </hidden>

 </multi>

</table>
then a hidden data will be sent only if the radio-button (checkbox-button) is pressed.




html60author



List of articles   choose language


Используются технологии uCoz