Skip to main content

Posts

Showing posts from March, 2012

Google Recaptcha implementation without plugin

Google Recaptcha Implementation STEP 1: Add Following Script on you page: < script type ="text/javascript" src ="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"> script > < script src ="http://code.jquery.com/jquery-latest.pack.js"> script > < script type ="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 r