this.inPlaceEdit_ = function inPlaceEdit_(ele,state){ if(state=='blur'){alert('enters'); // ele.innerHTML = ele.getElementsByTagName('input')[0].value; // ele.removeChild(ele.getElementsByTagName('input')[0]); /* ele.style.background='#cc9900';*/ /* var re = new RegExp("(^\[0-9]{1,6}$)"); ele.style.background='#cc99ff'; if(ele.value == ""){ ele.value = 0; } else if(!ele.value.match(re)){ ele.style.background='#cc0000'; alert('Value must be numeric.'); return false; } */ } else{ var Inp = document.createElement('input'); Inp.style.width = '100%'; Inp.style.height = '100%'; Inp.style.border = '1px'; Inp.style.overflow = 'hidden'; Inp.style.padding = '0px'; Inp.style.margin = '0px'; Inp.style.fontSize = '10px'; Inp.style.fontWeight = 'bold'; ele.innerHTML = ''; ele.appendChild(Inp); Inp.focus(); Inp.addEventListener('blur', MonPlanning.inPlaceEdit_(ele, 'blur'), false); } };