[quote=148133:@Brock Nash]Google came out with their new ReCaptcha feature the other day so I implemented it and its working GREAT. https://developers.google.com/recaptcha/
I’d love to get any feedback. The control is crazy simple to use but there’s a few minor features I could still add to it. The “dark” theme is one of those for example.
[quote=148282:@Albin Kiland]hmm, can’t use it in 2013r33.
I get a Syntax error: WebReCaptcha.FrameworkPropertyChanged.
Guess I need to upgrade soon :P[/quote]
Yeah the WebSDK didn’t have the HTMLHeader Hook event back in 2013 which this control uses. And apparently the FrameworkPropertyChanged event didn’t exist yet either
It works alright, but if I go to another page, then back to the page with the recaptcha control, I get a js error:
Could not execute returned javascript: ReCAPTCHA placeholder element must be empty
Source: grecaptcha.render('QCr6nITF', {
'sitekey' : '6Ld_xv4SAAAAALuIg6cTR-Wn3Zb4dnF3vPkBbp3I'
, 'callback' : function(callback){Xojo.triggerServerEvent('QCr6nITF','Verify',[callback])}
});
[quote=148934:@Jay Madren]It works alright, but if I go to another page, then back to the page with the recaptcha control, I get a js error:
Could not execute returned javascript: ReCAPTCHA placeholder element must be empty
Source: grecaptcha.render('QCr6nITF', {
'sitekey' : '6Ld_xv4SAAAAALuIg6cTR-Wn3Zb4dnF3vPkBbp3I'
, 'callback' : function(callback){Xojo.triggerServerEvent('QCr6nITF','Verify',[callback])}
});[/quote]
Hmmm I call the reCaptcha’s render JS event in the Xojo shown event. Do you mean your navigating from one WebPage to another within the Xojo app or within the browser? It must fail if the shown event is called a second time, and I was thinking I could rely on this being called once.
Yes, navigating back to the page within the app (user clicks a menu button, page is shown). Open is called once, Shown is called every time the page (and therefore control) is… um… shown.