Data modification and addition of XML data island

黄舟
Release: 2017-04-01 13:29:55
Original
1774 people have browsed it

Modifying the data in the XML data island in IE is much easier than imagined.

First you need to bind the field to the HTML control with editing function. The HTML control with editing function mentioned here is the input box (input type="text"), the selection box ( select), check box (input type=checkbox), radio button (input type=radio), etc. The binding method is as follows:

<inputtype="text"datasrc="#XMLData"datafld="title">
Copy after login

This means that the input box is bound to the "title" field in the data island named "XMLData". When the user enters data in this input box, the customer will be changed immediately. The field value on the end (there is no actual writing back to the XML file).

If you want to add data, you can call the recorddataset.adNew method in the data island object .

<inputtype="button"value="NewRecord"onclick="XMLData.recordset.addNew">
Copy after login

The above is the detailed content of Data modification and addition of XML data island. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template