seco Posted February 9, 2008 Share Posted February 9, 2008 Hi i find this snippet that edit in place and don't understand it well <script type="text/javascript"> <!-- function editField(what){ what.style.display="none"; document.getElementById(what.id.substring(0,what.id.indexOf("_div"))).style.display="inline"; document.getElementById(what.id.substring(0,what.id.indexOf("_div"))).focus(); } function updateField(what){ document.getElementById(what.id+"_div").style.display="inline"; document.getElementById(what.id+"_div").innerHTML=what.value; what.style.display="none"; what.form.submit(); } //--> </script> and this is the source http://dmxzone.com/showDetail.asp?NewsId=14619&FromTypeId=9&source=Stats how it works? and what it means? thanks in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.