on 07-21-2015 6:43 AM
Added captcha in sapui5 application but it is not working in ie
Hi Ashok
It is hard to support you when your question is brief.
When you elaborate more, understanding your question is going to be a breeze.
We hope to support as many members as possible.
But it is your willingness to provide more information that make this possible.
Providing snippet of your code would be nice.
Or working code in jsbin.com would be nicer.
We have many questions posted in this space.
Hence we are asking everyone to help so we can keep up with the pace.
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can refer the below code snippet for CAPTCHA. Written in JQuery.
function captcha()
{
var alpha = new Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9');
var alpha1 = new Array('1','2')//,'3','4','5','6','7','8','9');
var random=new Array('1','2')
numericSumRandom = random[Math.floor(Math.random() * random.length)];
var a2,b2,j;
for (j=0;j<6;j++){
a2 = alpha1[Math.floor(Math.random() * alpha1.length)];
b2 = alpha1[Math.floor(Math.random() * alpha1.length)];
}
code = a2;
code1=b2;
var i;
for (i=0;i<6;i++){
var a = alpha[Math.floor(Math.random() * alpha.length)];
var b = alpha[Math.floor(Math.random() * alpha.length)];
var c = alpha[Math.floor(Math.random() * alpha.length)];
var d = alpha[Math.floor(Math.random() * alpha.length)];
var e = alpha[Math.floor(Math.random() * alpha.length)];
var f = alpha[Math.floor(Math.random() * alpha.length)];
var g = alpha[Math.floor(Math.random() * alpha.length)];
}
var code2 = a+b+c+d+e+f+g//a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
//
if(numericSumRandom=='1')
{
if(document.getElementById("two")!=null)
{
document.getElementById("two").id="capta"
}
captcha.setPlaceholder("please enter the below letters");
document.getElementById("capta").innerHTML = code2
}
if(numericSumRandom=='2')
{
if(document.getElementById("two")==null)
{
document.getElementById("capta").id ="two";
}
captcha.setPlaceholder("please add the below numbers");
document.getElementById("two").innerHTML = "what is "+ code +"+"+ code1+" ?"
}
}
I used google re captcha refer bellow link to get captcha
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.