Results 1 to 8 of 8

Thread: Google Recaptcha for Dataflex Web/Mobile Applications

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Google Recaptcha for Dataflex Web/Mobile Applications

    Haven't posted in a while so I thought I would share some web app plugins I have created over the last year. First up is google recaptcha.
    https://1drv.ms/u/s!AtZywc3WXTCusEWFFe7BNIht4aXy

    Click image for larger version. 

Name:	recaptcha.png 
Views:	146 
Size:	11.8 KB 
ID:	12194

    You will need a site key and secret which you can get at https://www.google.com/recaptcha
    Copy the pkg file to your AppSrc directory, the js file to your AppHtml directory and paste the following into your Index.html file under Dataflex custom control comment:
    HTML Code:
    <script src="https://www.google.com/recaptcha/api.js"></script>
    <script type="text/javascript" src="Recaptcha.js"></script>
    Example Usage:
    Code:
    Use cRecaptcha.pkg
    
    Object oRecaptcha is a cRecaptcha
        Set psSiteKey to "Your_Site_Key"
    
        Procedure OnResponse String sResponse
            Forward Send OnResponse sResponse
            WebSet pbEnabled of oWebButton to (VerifyResponse(Self, sResponse, "Your_Secret"))
        End_Procedure
    End_Object

  2. #2

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    Hi Jarred!

    The link is broken! Could you fix it?

    Thanks!

    Genildo


    Quote Originally Posted by Jarred@TME View Post
    Haven't posted in a while so I thought I would share some web app plugins I have created over the last year. First up is google recaptcha.
    https://1drv.ms/u/s!AtZywc3WXTCusEWFFe7BNIht4aXy

    Click image for larger version. 

Name:	recaptcha.png 
Views:	146 
Size:	11.8 KB 
ID:	12194

    You will need a site key and secret which you can get at https://www.google.com/recaptcha
    Copy the pkg file to your AppSrc directory, the js file to your AppHtml directory and paste the following into your Index.html file under Dataflex custom control comment:
    HTML Code:
    <script src="https://www.google.com/recaptcha/api.js"></script>
    <script type="text/javascript" src="Recaptcha.js"></script>
    Example Usage:
    Code:
    Use cRecaptcha.pkg
    
    Object oRecaptcha is a cRecaptcha
        Set psSiteKey to "Your_Site_Key"
    
        Procedure OnResponse String sResponse
            Forward Send OnResponse sResponse
            WebSet pbEnabled of oWebButton to (VerifyResponse(Self, sResponse, "Your_Secret"))
        End_Procedure
    End_Object

  3. #3

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    Genildo,

    Looks indeed like the oneDrive link expired.

    See attached for his work downloaded on August 15, 2018
    Google Recaptcha.zip

    (Jarred if you want me to remove this then let me know and I'll delete this post)
    --
    Wil

  4. #4
    Join Date
    May 2018
    Location
    DAE Hengelo
    Posts
    190

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    Always nice to see people sharing practical stuff they made! We should probably catalogue this somewhere so it doesn't get buried underneath future forum posts...

  5. #5
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,850

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    I agree. I've moved this thread to the Code Library forum for this reason.

  6. #6

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    For the sake of posterity, I have created a link to this post from DataFlex.wiki. It's under a new 'Plugins' heading on the Portal:Web Applications page. Please feel free to add more plugin links to this page. The beauty of DataFlex.wiki is that it's so easy to search for things!

  7. #7
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,850

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications


  8. #8
    Join Date
    Feb 2009
    Posts
    2,026

    Default Re: Google Recaptcha for Dataflex Web/Mobile Applications

    Nice work Jarred thanks for sharing.

Posting Permissions

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