Skip to main content

Posts

Showing posts from March, 2012

Google Recaptcha implementation without plugin

Google Recaptcha ImplementationSTEP 1:Add Following Script on you page:<scripttype="text/javascript"src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js">script><scriptsrc="http://code.jquery.com/jquery-latest.pack.js">script><scripttype="text/javascript">function showRecaptcha(element) { Recaptcha.create("your_public_key", element, { theme: "clean", callback: Recaptcha.focus_response_field }); }function showResult() {//alert('start');var challengeVal = Recaptcha.get_challenge();//alert(challengeVal);var reponseVal = Recaptcha.get_response(); alert(reponseVal);var remoteIp = "172.18.224.92";//alert(remoteIp);var privateKey = ’Your_Private_Key’;var requestUrl = "http://api-verify.recaptcha.net/verify?privatekey=" + privateKey + "&remoteip=" + remoteIp + "&challenge=" + challengeVal + "&response=" …