Use the userData to implement the client to save form data

xiaoxiao2021-03-05  23

For friends made by the majority web page, the information saved on the webpage form is implemented, which is achieved by cookie technology, such as the options for the drop-down list box, and the data entered by the text box. In fact, we can use the USERDATA behavior in Microsoft DHTML default behavior to implement this function. Because many netizens asked such a problem, they sorted it and provided three examples. The following will be described in the use of the behavior: UserData Behavior: 1, Description: UserData behavior Saves data by writing data into a USERDATA Store, userData can save data in XML format On the client computer, if you use Windows 2000 or Windows XP, it is saved under the C: / Documents and Settings / Liming / UserData / folder (if the operating system is not installed in the C drive, then c should be an operating system. The partition). This data will always exist unless you have a delete or use script to set the data of the data. UserData behavior provides a data structure that is more dynamic and greater than cookies. The UserData storage area data size per page can reach 64 KB, each domain name can reach 640 kB. UserData behavior assigns the USERDATA storage area for each object via sessions. Save the UserData storage area data in the cache using the Save and Load methods. Once the USERDATA store is saved, even if the IE browser is turned off or refreshed, the data can be reloaded without being lost next time. For security considerations, the same protocol saves USERDATA storage area data using the same folder. For Security Reasons, a UserData Store Is Available Only In The Same Directory and with the The Same Protocol Used to Persist The Store. Applying the Save and Load methods after using the UserData behavior on HTML, Head, Title, and Style tags. Setting the userdata behavior (proposed) Class on the HTML, Head, Title, or Style Object Causes An Error When a Save or Load Method Is Called. The head must be as follows: