tag:blogger.com,1999:blog-2638172220204338809.post6753118304035055958..comments2023-12-20T02:37:08.459-05:00Comments on Yiyu Jia's technical Blog: Ext JS 4 reCAPTCHA widgetYiyu Jiahttp://www.blogger.com/profile/04493914593695340001noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-2638172220204338809.post-19745982286022372752013-08-29T01:09:51.241-04:002013-08-29T01:09:51.241-04:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/14371635218105521048noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-79372201991720808662013-02-19T05:23:18.509-05:002013-02-19T05:23:18.509-05:00I have used the above captcha handler code if I en...I have used the above captcha handler code if I enter wrong in capthca textBox that time I did not get error. what is issue ?Anonymoushttps://www.blogger.com/profile/05853327772686235913noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-2725119311718987852012-12-22T16:24:27.506-05:002012-12-22T16:24:27.506-05:00How I can check that the captcha is correct ?How I can check that the captcha is correct ?Ahmedhttps://www.blogger.com/profile/06773869664520119152noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-69576336353792522682012-08-13T06:15:32.087-04:002012-08-13T06:15:32.087-04:00Thank you...helped me a lot...Thank you...helped me a lot...Ajay Phttp://www.tibco.comnoreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-78389681296083440692012-04-30T01:09:12.667-04:002012-04-30T01:09:12.667-04:00Assuming recaptcha component defined as 'recap...Assuming recaptcha component defined as 'recaptcha', the handler would look similar to (Tested in extjs 4):<br /><br /> handler: function() {<br /> var form = this.up('form').getForm();<br /> if(form.isValid()) {<br /> form.submit({<br /> params: {<br /> recaptcha_challenge_field: recaptcha.getChallenge(),<br /> recaptcha_response_field: recaptcha.getResponse()<br /> },<br /> success: function(form, action) {<br /> Ext.Msg.alert('Success', action.result.msg);<br /> },<br /> failure: function(form, action) {<br /> Ext.Msg.alert('Failed', action.result.msg);<br /> }<br /> });<br /> }<br /> }NPE633https://www.blogger.com/profile/12306686726514285823noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-56164237296602072852012-02-21T11:54:50.809-05:002012-02-21T11:54:50.809-05:00You can add this widget in to Form panel in the sa...You can add this widget in to Form panel in the same as adding other fields. The validation is done on the server side. You can visit google recaptcha site for more info.Yiyu Jiahttps://www.blogger.com/profile/04493914593695340001noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-10954598319215346642012-02-20T11:15:13.967-05:002012-02-20T11:15:13.967-05:00how do you check if the entered value is correct?
...how do you check if the entered value is correct?<br />Or how do you send the value with the form submit ?MJNhttps://www.blogger.com/profile/11071729018901200493noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-52176941532029674962011-11-07T05:16:44.177-05:002011-11-07T05:16:44.177-05:00Done, thx again!Done, thx again!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-23934920757489729222011-11-04T15:22:22.429-04:002011-11-04T15:22:22.429-04:00thanks for comment! To answer your question,
1) y...thanks for comment! To answer your question,<br /><br />1) you need to include below javascript in your html.<br />http://www.google.com/recaptcha/api/js/recaptcha_ajax.js<br /><br />Recaptcha is defined there.<br /><br /><br />2) You can add this widget in to Form panel in the same as adding other fields.Yiyu Jiahttps://www.blogger.com/profile/04493914593695340001noreply@blogger.comtag:blogger.com,1999:blog-2638172220204338809.post-56804275034448971242011-11-04T09:18:40.271-04:002011-11-04T09:18:40.271-04:00Nice job :)
Only two questions :
Where can I crea...Nice job :)<br /><br />Only two questions :<br />Where can I create a Recaptcha instance ?<br />And how display it in a form ?<br /><br />ThxAnonymousnoreply@blogger.com