Hi guys,
I am observing that many people are reading my question but no one is responding. Guys please help, if someone know the solution.
I hope my below code will help you understand my problem more precisely.
My Javascript Code:
isc.DynamicForm.create({
height:200,
ID:"test_UserRegisteration_DynamicForm",
saveOperationType:"add",
autoFocus:true,
fields:[
{
title:"First Name<font color=\"red\">*</font>" ,
ID:"lip_UserRegisteration_FirstName_TextBox",
name:"lip_ur_first_name",
itemHoverHTML : function () {
return "It should not be more than 20 characters and it should only be aplhabets";
},
type:"text"
},
{
title:"E-Mail ID<font color=\"red\">*</font>",
ID:"lip_UserRegisteration_Username_TextBox",
name:"lip_ur_username",
itemHoverHTML : function () {
return "This e-mail id will be treated as Username for login";
},
type:"text"
},
{
title:"Password<font color=\"red\">*</font>",
ID:"lip_UserRegisteration_Password_TextBox",
name:"lip_ur_password",
itemHoverHTML : function () {
return "Password should be atleast six character";
},
type:"password"
},
{
title:"reCaptcha",
ID:"lip_ReCaptcha_TextArea",
name:"lip_reCaptcha",
type:"StaticTextItem"
},
{
title:"Register",
ID:"lip_UserRegisteration_Register_Button",
name:"lip_ur_register_button",
type:"button",
colSpan:2,
align:"center"
}
],
width:"100%"
})
isc.VLayout.create({
members:[
test_UserRegisteration_DynamicForm
],
showDragPlaceHolder:false,
height:"100%",
ID:"lip_UserRegisteration_TabPane",
width:"100%",
layoutMargin: 25,
overflow:"auto"
})
Recaptcha.create("6Lew7QsAAAAAAET8Vd7mBVYw-p_RzlY6n_Q3G00p", test_UserRegisteration_DynamicForm.getField("lip_reCaptcha"), {
theme: "red",
callback: Recaptcha.focus_response_field
});
In my above smartclient code, I am using one Recaptcha.create function, in which I need to pass-on the form element where I want to show my captcha. As expected, I am passing the field of my DynamicForm where I want to show captcha, but still captcha is not shown.
If I create HTML form in place of native SmartClient Dynamic Form and pass the div tag (defined in form) to Recaptcha.create, I am able to see captcha successfully.
As far as I understand , most probably the issue is that either I am not able to pass the element of DynamicFrom successfully or the type of this element is not matching what Recaptcha returns.
Is someone working how to integrate ReCaptcha with SmartClient. I think it would be very imp for many users. Currently all the major AJAX frameworks have a mechanism to integrate ReCaptcha (one of the most popular captcha). Below are the links to brief tutorials about Recaptcha with AJAX, kindly have a look:
http://recaptcha.net/apidocs/captcha/client.html
Example (Demo) - have a look at the page source to know how its done.
http://recaptcha.net/fastcgi/demo/ajax
If someone have any idea, please share. Its really imp for me.
Regards,
Gaurav