Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to request a url with parameters

    i m trying to implement captcha in my site.i m using recaptcha.

    To check the captcha

    i need to request url like:
    http://www.google.com/recaptcha/api/verify?privatekey="key"&remoteip="ip"&challenge="chal"&response="res"

    and then i need to check response from url if it is true or false

    i dont know how to request response from url

    help plz

  • #2
    Regular Coder
    Join Date
    Jan 2006
    Posts
    568
    Thanks
    6
    Thanked 84 Times in 84 Posts
    Are you talking about an AJAX request?

    Code:
    var req=XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
    req.open("GET", url, false);
    
    req.onreadystatechange=function() {
    	if(req.readyState==4) {
    		alert(req.responseText);
    	}
    }
    
    req.send(null);

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    no, i think its some thing different


    i will describe problem in detail
    actually its a two step process

    1st is displaying recaptcha
    http://code.google.com/apis/recaptcha/docs/display.html
    which i have done

    2nd is verifying answer
    http://code.google.com/apis/recaptcha/docs/verify.html
    i m stuck here


    i m new to java script....so plz try to explain things in lil detail.......

    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •