Trying to port this in VisualNeo Web Plugin - Forum

Forum Navigation
You need to log in to create posts and topics.

Trying to port this in VisualNeo Web Plugin

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.

@sghoshnbu hello

i think no need container !

you can show your result on variables

A few moments I am preparing a plugin for you.

ok

you can see plugin here : https://visualneo.com/forum/topic/counting-vowels-plugin#postid-5061

regards - Yasin

I can send you the source of plugin
If you need it, send email to me or see my webpage in http://www.YasinTHY.ir