Hi Everybody,
I need to ask Your help…
I’m getting the following error while adding controls with EmbedWithin.
Error: Could not execute returned javascript: undefined is not an object
I’ve already checked all around, but I’m not able to find a solution, since it seems different from other situations.
The error is NOT raising every time, and not on every container I’m adding.
this is part of the JAVA error log (not related to the below images, but to show one of the errors):
2020-02-11 11:31:40
JavaScript Error:
Error: Could not execute returned javascript: undefined is not an object (evaluating ‘Xojo.controls[‘oHBwysgK’].setAttribute’)
Source: new webcanvas(‘bxuXz6OY’,
just a short part of how I’m working with the code, but, as mentioned, even running in debug mode, nothing is going into exception.
Riga(tot_righe) = New ContainerQty
Riga(tot_righe).EmbedWithin(Self, oOffset, mOffset, Riga(tot_righe) .Width, Riga(tot_righe) .Height)
What i saw through WEB INSPECTOR is that it seems the Object is created two times, one correctly and one without all the classes, but with the same instance name as far as I can understand
This the example of duplicate “Sg0xjRiQ” :
and this how it shows on the web pace:
Thanks a lot for any suggestion.
Enrico