<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to HTML5 Controls - string(&gt;80) values </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a5d3244030/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a5d3244030/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/a5d3244030/</id><updated>2024-10-23T14:07:56.716000Z</updated><subtitle>Recent posts to HTML5 Controls - string(&gt;80) values </subtitle><entry><title>HTML5 Controls - string(&gt;80) values </title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a5d3244030/?limit=250#4799" rel="alternate"/><published>2024-10-23T14:07:56.716000Z</published><updated>2024-10-23T14:07:56.716000Z</updated><author><name>Strucc.c</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.com8ba3b5b87507879bf54df748bb8fb77f75c1b982</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all, does anyone have experience with HTML5 controls recently?&lt;br/&gt;
CODESYS 3.5.20.30 / Visualization 4.6.0.0 &lt;/p&gt;
&lt;p&gt;I'd like to create a simple lightweight text editor, with proper multiline handling, cut &amp;amp; paste, scrolling, etc. And it seems to work fine, just have problems with strings longer than 80 bytes....&lt;/p&gt;
&lt;p&gt;Declaring a variable &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;sText1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;8000&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and referencing it in the HTML5 Controls corresponding value property works perfectly one way:&lt;br/&gt;
the code receive the data as a string (See log1)... (Note TypeID 1000...)&lt;/p&gt;
&lt;p&gt;Also sending back the data (seems to work (See log2), &lt;strong&gt;&lt;em&gt;except it doesn't change the value of the bound variable&lt;/em&gt;&lt;/strong&gt;. Probably the issue is with using &lt;strong&gt;SendSimpleValue&lt;/strong&gt; method... &lt;/p&gt;
&lt;p&gt;Naturally, I could do a workaround, but maybe there is a more standard way to implement this...&lt;/p&gt;
&lt;p&gt;Please let me know if you have any suggestions.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>