<?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 Re: Append div to InfoWindow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/append-div-to-infowindow/m-p/243485#M22531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you not set the content of your InfoWindow to be the innerHTML of the div?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var ele = document.getElementById("fancyDiv"); //you will probably be using dom.byId() to do this
infoWindow.setContent(ele.innerHTML);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:10:22 GMT</pubDate>
    <dc:creator>TimCollyer</dc:creator>
    <dc:date>2021-12-11T12:10:22Z</dc:date>
    <item>
      <title>Append div to InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/append-div-to-infowindow/m-p/243484#M22530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to figure out the best way to append a Div (with a bunch of HTML) to an InfoWindow. I'm attaching InfoWindows to several different graphics layers. Each one has different formats for attributes. I'm using an onclick event to grab the attributes from the graphics, and insert it into a fairly fancy div. Now, I need the map/pan (extent-change event) to handle setting up the proper anchor with the graphic. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats the best method to set this up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 23:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/append-div-to-infowindow/m-p/243484#M22530</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2014-01-08T23:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Append div to InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/append-div-to-infowindow/m-p/243485#M22531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you not set the content of your InfoWindow to be the innerHTML of the div?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var ele = document.getElementById("fancyDiv"); //you will probably be using dom.byId() to do this
infoWindow.setContent(ele.innerHTML);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/append-div-to-infowindow/m-p/243485#M22531</guid>
      <dc:creator>TimCollyer</dc:creator>
      <dc:date>2021-12-11T12:10:22Z</dc:date>
    </item>
  </channel>
</rss>

