<?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 Infowindow sprite background-image at runtime in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251676#M23305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on creating an application where i&amp;nbsp; need to change the background of my infowindow at runtime based on the graphic attributes. I am able to set the infowindow style in the CSS by overriding the .infowindow .sprite. But i am unable to change the sprite at runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one help me solving the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jun 2010 14:08:09 GMT</pubDate>
    <dc:creator>RaviKonaparthi</dc:creator>
    <dc:date>2010-06-11T14:08:09Z</dc:date>
    <item>
      <title>Infowindow sprite background-image at runtime</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251676#M23305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on creating an application where i&amp;nbsp; need to change the background of my infowindow at runtime based on the graphic attributes. I am able to set the infowindow style in the CSS by overriding the .infowindow .sprite. But i am unable to change the sprite at runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one help me solving the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 14:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251676#M23305</guid>
      <dc:creator>RaviKonaparthi</dc:creator>
      <dc:date>2010-06-11T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow sprite background-image at runtime</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251677#M23306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one help me on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 15:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251677#M23306</guid>
      <dc:creator>RaviKonaparthi</dc:creator>
      <dc:date>2010-06-15T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow sprite background-image at runtime</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251678#M23307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried all the possible ways from my end with no luck. Can any one have solution for this feature?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 11:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251678#M23307</guid>
      <dc:creator>RaviKonaparthi</dc:creator>
      <dc:date>2010-06-28T11:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow sprite background-image at runtime</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251679#M23308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally i found the solution and here it is...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CSS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.orangeSprite&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url(images/orangeinfowindow.png) !important;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _background-image: none !important;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: White;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _filter: progid: DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='images/orangeinfowindow.png') !important;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before showing the infowindow, please use the below code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; var infoWindow = map.infoWindow;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var sprite = dojo.query('.sprite', infoWindow.domNode);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for (var i = 0; i &amp;lt; sprite.length; i++) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprite&lt;I&gt;.className = 'sprite orangeSprite'; //sprite is the default class for infowindow and orangeSprite has the actual sprite image to be displayed.&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.infoWindow.resize(380, 220);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now call the resize() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will get the new sprite image, instead of the default provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 12:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251679#M23308</guid>
      <dc:creator>RaviKonaparthi</dc:creator>
      <dc:date>2010-08-13T12:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Infowindow sprite background-image at runtime</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251680#M23309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Finally i found the solution and here it is...&lt;BR /&gt;&lt;BR /&gt;CSS:&lt;BR /&gt;&lt;BR /&gt;.orangeSprite&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url(images/orangeinfowindow.png) !important;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _background-image: none !important;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: White;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _filter: progid: DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='images/orangeinfowindow.png') !important;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Code: &lt;BR /&gt;&lt;BR /&gt;Before showing the infowindow, please use the below code:&lt;BR /&gt;&lt;BR /&gt; var infoWindow = map.infoWindow;&lt;BR /&gt; var sprite = dojo.query('.sprite', infoWindow.domNode);&lt;BR /&gt; for (var i = 0; i &amp;lt; sprite.length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprite&lt;I&gt;.className = 'sprite orangeSprite'; //sprite is the default class for infowindow and orangeSprite has the actual sprite image to be displayed.&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;map.infoWindow.resize(380, 220);&lt;BR /&gt;&lt;BR /&gt;Now call the resize() method.&lt;BR /&gt;&lt;BR /&gt;You will get the new sprite image, instead of the default provided.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ravi.&lt;/I&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clever, Ravi. I will have to try that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-sprite-background-image-at-runtime/m-p/251680#M23309</guid>
      <dc:creator>BenStuder</dc:creator>
      <dc:date>2010-08-13T16:50:07Z</dc:date>
    </item>
  </channel>
</rss>

