<?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 Button inside an info window in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-inside-an-info-window/m-p/1052160#M72778</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i have a html button inside contents of infowindow.like below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;strContent = strContent + "&amp;lt;tr&amp;gt;" + "&amp;lt;td align=center colspan=2 &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" + "&amp;lt;button type=button class=button onclick=" + getReport(idResult.layerId, feat.feature.attributes.&lt;/SPAN&gt;&lt;SPAN&gt;OBJECTID_1) + "&amp;gt;تقرير&amp;lt;/button&amp;gt; " + "&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;strContent = strContent + "&amp;lt;tr&amp;gt;" + "&amp;lt;td align=center colspan=2 &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" + "&amp;lt;a href=" + strLyr + "&amp;gt;المزيد من المعلومات&amp;lt;/a&amp;gt; " + "&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this show me two buttons inside infowindow.one is hyperlink and other is command button.hyperlink working perfect.problem is with command button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;function getReport(id,objID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; alert("hello");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;problem is when i use identify to show info window the command button click event call on map click.when i click on button nothing happened.i want this getReport function should be called when i click button inside info window.please help thanks in adavnce.i am using arcgis 3.32 api.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 11:26:12 GMT</pubDate>
    <dc:creator>Nadir_Hussain</dc:creator>
    <dc:date>2021-04-28T11:26:12Z</dc:date>
    <item>
      <title>Button inside an info window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-inside-an-info-window/m-p/1052160#M72778</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i have a html button inside contents of infowindow.like below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;strContent = strContent + "&amp;lt;tr&amp;gt;" + "&amp;lt;td align=center colspan=2 &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" + "&amp;lt;button type=button class=button onclick=" + getReport(idResult.layerId, feat.feature.attributes.&lt;/SPAN&gt;&lt;SPAN&gt;OBJECTID_1) + "&amp;gt;تقرير&amp;lt;/button&amp;gt; " + "&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;strContent = strContent + "&amp;lt;tr&amp;gt;" + "&amp;lt;td align=center colspan=2 &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" + "&amp;lt;a href=" + strLyr + "&amp;gt;المزيد من المعلومات&amp;lt;/a&amp;gt; " + "&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this show me two buttons inside infowindow.one is hyperlink and other is command button.hyperlink working perfect.problem is with command button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;function getReport(id,objID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; alert("hello");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;problem is when i use identify to show info window the command button click event call on map click.when i click on button nothing happened.i want this getReport function should be called when i click button inside info window.please help thanks in adavnce.i am using arcgis 3.32 api.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 11:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-inside-an-info-window/m-p/1052160#M72778</guid>
      <dc:creator>Nadir_Hussain</dc:creator>
      <dc:date>2021-04-28T11:26:12Z</dc:date>
    </item>
  </channel>
</rss>

