rem: xformsAddEventListener(control, "propertychange", function(event) { if (event.propertyName == "value") { var span = getEventTarget(event); if (!span.valueSetByXForms) { var textField = span.childNodes[1]; textField.value = span.value; span.valueSetByXForms = true; span.value = span.previousValue; xformsDispatchEvent(textField, "change"); } if (span.valueSetByXForms) { span.valueSetByXForms = false; } } }); 
add: xformsAddEventListener(textfield, "keypress", function(event) { if (event.keyCode == 10 || event.keyCode == 13) { xformsHandleValueChange(event); var span = getEventTarget(event).parentNode; xformsFireEvents(new Array(xformsCreateEventArray(span, "DOMActivate", null))); } }); 
context:                     xformsAddEventListener(control, "propertychange", function(event) {                        if (event.propertyName == "value") {                            var span = getEventTarget(event);                            if (!span.valueSetByXForms) {                                var textField = span.childNodes[1];                                textField.value = span.value;                                span.valueSetByXForms = true;                                span.value = span.previousValue;                                xformsDispatchEvent(textField, "change");                            }                            if (span.valueSetByXForms) {                                span.valueSetByXForms = false;                            }                        }                    });
meta: 9823	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9823/e0a15c2148b52c8dbe739113139cb5ddda84267e/xforms.js/clean/src/examples/web/ops/javascript/xforms.js