<?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 Dojo Cannot Read Property 'on' of null in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-cannot-read-property-on-of-null/m-p/608248#M56887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got an interesting one I've been trying to figure out, but having no luck. Hopefully someone else can shed some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a little chunk of code that is watching for a button click on a popup. When it's clicked it fires a function. It works great on a desktop, however I'm finding on mobile devices/tablets i'm getting the Cannot read property'on' of null error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine I'm just missing something in the require, or something silly but it's a bit of a mystery to me at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code. It's just the view watching for a click on the "viewDetailsPopupButton", which ,of course ,is embedded in a popup. The error is obviously firing on the "on(dom.byId...)" . I'm just not sure why dom.byID is null?&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/451406_pastedImage_3.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/451407_pastedImage_4.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/451398_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Any guesses, or help would be very much appreciated!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2019 15:07:42 GMT</pubDate>
    <dc:creator>ShawnRoberts1</dc:creator>
    <dc:date>2019-06-25T15:07:42Z</dc:date>
    <item>
      <title>Dojo Cannot Read Property 'on' of null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-cannot-read-property-on-of-null/m-p/608248#M56887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got an interesting one I've been trying to figure out, but having no luck. Hopefully someone else can shed some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a little chunk of code that is watching for a button click on a popup. When it's clicked it fires a function. It works great on a desktop, however I'm finding on mobile devices/tablets i'm getting the Cannot read property'on' of null error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine I'm just missing something in the require, or something silly but it's a bit of a mystery to me at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code. It's just the view watching for a click on the "viewDetailsPopupButton", which ,of course ,is embedded in a popup. The error is obviously firing on the "on(dom.byId...)" . I'm just not sure why dom.byID is null?&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/451406_pastedImage_3.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/451407_pastedImage_4.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/451398_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Any guesses, or help would be very much appreciated!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-cannot-read-property-on-of-null/m-p/608248#M56887</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2019-06-25T15:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Cannot Read Property 'on' of null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-cannot-read-property-on-of-null/m-p/608249#M56888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed my own problem.&lt;/P&gt;&lt;P&gt;Callbacks and requires were in the wrong order.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-cannot-read-property-on-of-null/m-p/608249#M56888</guid>
      <dc:creator>ShawnRoberts1</dc:creator>
      <dc:date>2019-06-25T15:49:35Z</dc:date>
    </item>
  </channel>
</rss>

