Javascript for replacing n th character in a string

    Javascript for replacing n th character in a string:     function RepalceCharacter(sourceString,stringTobeReplaced,index) {     var re = new RegExp('^(.{'+ –index +'}).(.*)$','');     return sourceString.replace(re,'$1'+stringTobeReplaced+'$2'); };   //Test code  alert( RepalceCharacter('nishanth','XSSSSX',3) ); 

Function in javascript to copy text area to client machine's clipboard

Here  is a small JS snippet to copy text in a div to the client machine's  clipboard. function CopyToClipBoard() { var div = document.getElementById('divLink'); div.contentEditable = true; //very important. var range = document.body.createControlRange(); range.addElement(document.getElementById('divLink')); range.select(); range.execCommand("Copy"); range.remove(0); range.select(); alert("The results have been copied to the clipboard.");…

Gmail Forgotten attachment detector

Do u have the habit of sending an email saying "please see the attachment" and forget to attach the file? Gmail Labs has the solution, After logging to Gmail -> Settings-> Labs. Go down and find the Lab "Forgotten Attachment Detector" .    Google says "Prevents…

Google's Own English to Malayalam Transliteration Tool

Today I wanted to write some post in blogger.com . So I searched for a good english to malayalam translation tool and stumbled upon Google Indic Transliteration . Its awesome and the best Transliteration tool I have ever used. Check this out here: http://www.google.com/transliterate/indic/Malayalam# .  Tip:…

1 2 3