rem: function rangeMouseMove(event) { var control = document.xformsCurrentRangeControl; if (control) { 
add: var rangeMouseMove = function (event) { var rangeControl = document.xformsCurrentRangeControl; if (rangeControl) { 
context:                 function rangeMouseMove(event) {                    var control = document.xformsCurrentRangeControl;                    if (control) {                        // Compute range boundaries                        var rangeStart = xformsGetElementPosition(control.track).left                        var rangeLength = control.track.clientWidth - control.slider.clientWidth;                        // Compute value                        var value = (event.clientX - rangeStart) / rangeLength;                        if (value < 0) value = 0;                        if (value > 1) value = 1;                                                // Compute slider position                        var sliderPosition = event.clientX - rangeStart;                        if (sliderPosition < 0) sliderPosition = 0;                        if (sliderPosition > rangeLength) sliderPosition = rangeLength;                        control.slider.style.left = sliderPosition;                                                // Notify server that value changed                        control.value = value;                        xformsValueChanged(control, true);                    }                                        return false;                }
meta: 7519	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7519/d4a1d4ca16fdf1f725d530c32683bbf19040fa65/xforms.js/clean/src/examples/web/oxf-theme/javascript/xforms.js