Quote from
sghoshnbu on April 10, 2020, 8:27 am
Dear developers,
Trying to understand basics of plugin development under VNWeb. Primarily I am trying understanding binding of Java script functions result to the Container Object. Started with a simple example but got stuck. What I am trying is this...
Code Section:
function sgShowNumber(containerid,yname){
var $containerid = containerid;
var count = 0;
for (var i=0;i<yname.length;i++)
{
if(yname[i] == "a" || yname[i] == "e" || yname[i] == "i" || yname[i] == "o" || yname[i] == "u")
count = count + 1;
}
$containerid.html("Hello " + yname + "!!! Your name has " + count + " vowels.");
return count;
}
Action:
result = sgShowNumber(containerid,yname);
The debugger is not showing any error, but container is blank.
I probably messed up with Container and it's properties. Let me know my errors.
Dear developers,
Trying to understand basics of plugin development under VNWeb. Primarily I am trying understanding binding of Java script functions result to the Container Object. Started with a simple example but got stuck. What I am trying is this...
Code Section:
function sgShowNumber(containerid,yname){
var $containerid = containerid;
var count = 0;
for (var i=0;i<yname.length;i++)
{
if(yname[i] == "a" || yname[i] == "e" || yname[i] == "i" || yname[i] == "o" || yname[i] == "u")
count = count + 1;
}
$containerid.html("Hello " + yname + "!!! Your name has " + count + " vowels.");
return count;
}
Action:
result = sgShowNumber(containerid,yname);
The debugger is not showing any error, but container is blank.
I probably messed up with Container and it's properties. Let me know my errors.
Uploaded files:- You need to login to have access to uploads.