userData behaviour

This sample demonstrates how persistence is used to preserve information in an XML store. The userData behaviour is a major evolution for client-side data over cookies.

The userData behaviour writes object information into an XML store explicitly using the load and save methods. Object information is set using the setAttribute, removeAttribute, and getAttribute methods.

Enter some text in the field below, then click the Save Data button. Click the browser's Back button and save this page as a favourite or to a disk. When you return to this page by clicking the Forward button, loading the favourite, or loading this page from disk, click the Load Data button to see the form field's persistence within an XML store.

Status:


Enter some text: