JavaScript DummyCursor to Default Form
This page illustrates JavaScript to HTML Form element connectsion, and contains no Java. The JavaScript Dummy Cursor fires onChange events which pass the property name, old value and new value. The new value is assigned to the the text fileds of the form. Because the JavaScript Dummy Cursor has its UPDATABLE flag set to true, the connections between the cursor and the HTML form fields are two way. Therefore event handlers for each of the HTML form elements' onchange event are defined which pass the updated value of the field are back to the cursor. If this were a real cursor, (like JSBufferedCursor), an additional step of updating the database from the cursor (triggered by the "UpdateCurrentRow" function) would be necessary to perminantly save the value changed in the form.