<?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: Attach multiple events in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870859#M12842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ken - that worked perfectly.&amp;nbsp; I guess it was just the pattern of using semi-colons for css delimiters that had me confused.&amp;nbsp; Thanks for the link to the Dojo documentation too (it can be a little overwhelming!). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 17:56:11 GMT</pubDate>
    <dc:creator>RiverTaig1</dc:creator>
    <dc:date>2015-01-29T17:56:11Z</dc:date>
    <item>
      <title>Attach multiple events</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870855#M12838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my widget, I have successfully hooked up a dojo on-click listener to an HTML Select control using data-dojo-attach-event like so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;select id="cboPaletteItemChooser" data-dojo-attach-event="onclick:myFunc" &amp;gt;&lt;/P&gt;&lt;P&gt;... more code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I really want to do is also add an event handler for the onchange event as well (in addition to onclick).&amp;nbsp; How can I add &lt;STRONG&gt;two or more&lt;/STRONG&gt; event handlers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this doesn't work&lt;/P&gt;&lt;P&gt;&amp;lt;select id="cboPaletteItemChooser" data-dojo-attach-event="onclick:myFunc;onchange:myFunc2" &amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 23:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870855#M12838</guid>
      <dc:creator>RiverTaig1</dc:creator>
      <dc:date>2015-01-27T23:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attach multiple events</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870856#M12839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;River,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I never figured out if this could be done so I just added the additional events in my code and not the html.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 02:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870856#M12839</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-01-28T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Attach multiple events</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870857#M12840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert - I'm such a Dojo and Javascript newbie, I'm not quite sure what that would look like.&amp;nbsp; Do you somehow attach an event handler in widget.js using Dojo?&amp;nbsp; Could you provide a code snip?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 20:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870857#M12840</guid>
      <dc:creator>RiverTaig1</dc:creator>
      <dc:date>2015-01-28T20:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attach multiple events</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870858#M12841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the &lt;A href="http://dojotoolkit.org/documentation/tutorials/1.10/templated/"&gt;Dojo documentation&lt;/A&gt;, the section on Event Attachments uses a slightly different syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;This is a &lt;STRONG&gt;comma-delimited&lt;/STRONG&gt; string of key/value pairs (separated by colon); the key is the native DOM event to attach a handler to, and the value is the name of your widget's method to execute when that event is fired&lt;CODE&gt;.&lt;/CODE&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14224779633401035 jive_text_macro" jivemacro_uid="_14224779633401035" modifiedtitle="true"&gt;&lt;P&gt;&lt;CODE class="plain htmlscript"&gt;data-dojo-attach-event="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick"&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 20:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870858#M12841</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-01-28T20:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Attach multiple events</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870859#M12842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ken - that worked perfectly.&amp;nbsp; I guess it was just the pattern of using semi-colons for css delimiters that had me confused.&amp;nbsp; Thanks for the link to the Dojo documentation too (it can be a little overwhelming!). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 17:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-multiple-events/m-p/870859#M12842</guid>
      <dc:creator>RiverTaig1</dc:creator>
      <dc:date>2015-01-29T17:56:11Z</dc:date>
    </item>
  </channel>
</rss>

