Javascript component

Hi,
I am trying to use javascript componentm but I still to get error javascript init function not found. I don’t understand what I’m doing wrong, javascript connector with javascript init function is present. Here there is a simple sample

image
jscomponent.zip (82.7 KB)

I suppose that the problem is that your JS connector has incorrect code:

element.innerHTML = "<canvas id="c" width=1024 height=768></canvas>";

In order to use " within " you need to escape them:

element.innerHTML = "<canvas id=\"c\" width=1024 height=768></canvas>";

So, I can see something like this:
09

Regards,
Gleb

1 Like

thanks.
solved