Hi,
I have a real mystery I try to fill an html element with a color which doesn't work. I'm converted my current message code to a file transfer.
///In companion I do:
My theory is that colour names are converted to numbers at build time. At run time, try sticking a number in there; eg, 16777215.
I suspect that no strings will work, including '16777215', '#808080', etc.
Best Answer@Gondwana I solved the mystery somehow the string contained a start and end quote, charAt (0, properties) resulted in ".
And that became because of somehow in the process of getting the color from the colorpicker the " char was escaped, so \"gold\". I still searching how that happend because earlier when using the message connection (instead of filetransfer) it all worked fine.
Thnx for thinking along,
Robert
I'd inspect what `data` contains before encoding it in the companion. Because maybe it contains the `"` character at that point, and the root cause is in earlier code like the settings.
Best Answer