<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calcite RadioButtons added as innerHTML to a &amp;lt;div&amp;gt; container throws error in JavaScript in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-radiobuttons-added-as-innerhtml-to-a-lt/m-p/1554398#M759</link>
    <description>&lt;P&gt;I have a JavaScript application that dynamically appends the DOM in code with HTML that includes Calcite radio buttons.&lt;/P&gt;&lt;P&gt;There is a target container in the DOM:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("my-html-container");&lt;/LI-CODE&gt;&lt;P&gt;I want to hydrate the container with HTML that exists as a string in the code (theHTML):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-radio-button-group name="Options" id="my_options" layout="vertical"&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="trees"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Trees
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="shrubs"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Shrubs
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="flowers"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Flowers
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="groundcover"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Groundcover
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="bushes"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Bushes
    &amp;lt;/calcite-label&amp;gt;
&amp;lt;/calcite-radio-button-group&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In Javascript&amp;amp;colon;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("power360-jxdm-container").innerHTML = theHTML;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;HOWEVER: the following gets thrown to the console when the above line executes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dirk_Vandervoort_0-1730394807552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118590i9B3D185AD2E79380/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dirk_Vandervoort_0-1730394807552.png" alt="Dirk_Vandervoort_0-1730394807552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The DOM gets hydrated successfully and the radio buttons are fully operational.&lt;/P&gt;&lt;P&gt;I would like to get rid of this error, which is apparently buried in ArcGIS code. What can I do?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 17:21:50 GMT</pubDate>
    <dc:creator>Dirk_Vandervoort</dc:creator>
    <dc:date>2024-10-31T17:21:50Z</dc:date>
    <item>
      <title>Calcite RadioButtons added as innerHTML to a &lt;div&gt; container throws error in JavaScript</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-radiobuttons-added-as-innerhtml-to-a-lt/m-p/1554398#M759</link>
      <description>&lt;P&gt;I have a JavaScript application that dynamically appends the DOM in code with HTML that includes Calcite radio buttons.&lt;/P&gt;&lt;P&gt;There is a target container in the DOM:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("my-html-container");&lt;/LI-CODE&gt;&lt;P&gt;I want to hydrate the container with HTML that exists as a string in the code (theHTML):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-radio-button-group name="Options" id="my_options" layout="vertical"&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="trees"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Trees
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="shrubs"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Shrubs
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="flowers"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Flowers
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="groundcover"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Groundcover
    &amp;lt;/calcite-label&amp;gt;
    &amp;lt;calcite-label layout="inline"&amp;gt;
        &amp;lt;calcite-radio-button value="bushes"&amp;gt;&amp;lt;/calcite-radio-button&amp;gt;
        Bushes
    &amp;lt;/calcite-label&amp;gt;
&amp;lt;/calcite-radio-button-group&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In Javascript&amp;amp;colon;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("power360-jxdm-container").innerHTML = theHTML;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;HOWEVER: the following gets thrown to the console when the above line executes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dirk_Vandervoort_0-1730394807552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118590i9B3D185AD2E79380/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dirk_Vandervoort_0-1730394807552.png" alt="Dirk_Vandervoort_0-1730394807552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The DOM gets hydrated successfully and the radio buttons are fully operational.&lt;/P&gt;&lt;P&gt;I would like to get rid of this error, which is apparently buried in ArcGIS code. What can I do?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 17:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-radiobuttons-added-as-innerhtml-to-a-lt/m-p/1554398#M759</guid>
      <dc:creator>Dirk_Vandervoort</dc:creator>
      <dc:date>2024-10-31T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite RadioButtons added as innerHTML to a &lt;div&gt; container throws error in JavaScript</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-radiobuttons-added-as-innerhtml-to-a-lt/m-p/1554770#M760</link>
      <description>&lt;P&gt;Hello! can you help us reproduce this error? I tried to replicate but i'm not seeing it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://codepen.io/driskull/pen/abeKZVy" target="_blank"&gt;https://codepen.io/driskull/pen/abeKZVy&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 17:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-radiobuttons-added-as-innerhtml-to-a-lt/m-p/1554770#M760</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2024-11-01T17:21:10Z</dc:date>
    </item>
  </channel>
</rss>

