<?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 &amp;amp;quot;Invalid template&amp;amp;quot; error when activating edit toolbar in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510659#M47552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Given a polygon graphic created with the draw toolbar, I am activating the edit toolbar to modify it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// geoObj.polyObject is the polygon graphic
this.editToolbar = new esri.toolbars.Edit(this.map);
this.editToolbar.activate(esri.toolbars.Edit.EDIT_VERTICES, geoObj.polyObject);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is just like in the code samples, but I'm getting the following dojo error (in chrome and firefox):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Uncaught Error: Invalid template: &amp;lt;table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; data-dojo-attach-event="onkeypress:_onKeyPress" cellspacing="0"&amp;gt;
 &amp;lt;tbody class="dijitReset" data-dojo-attach-point="containerNode"&amp;gt;&amp;lt;/tbody&amp;gt;
&amp;lt;/table&amp;gt;

 serverapi.arcgisonline.com:34
_94.buildRendering serverapi.arcgisonline.com:34
_2cf serverapi.arcgisonline.com:15
_1123.buildRendering serverapi.arcgisonline.com:34
_d52.create serverapi.arcgisonline.com:34
_d52.postscript serverapi.arcgisonline.com:34
(anonymous function) serverapi.arcgisonline.com:15
_1._addControllers _VertexEditor.js:19
_1.constructor _VertexEditor.js:19
(anonymous function) serverapi.arcgisonline.com:15
_2.mixin.create _VertexEditor.js:19
_1._enableVertexEditing edit.js:19
_1.activate edit.js:19
ArcGISMapProvider.beginGeoEdit widget.js:4040
NGWidget.OCA_GeoMap.Geo.editStart widget.js:1827
NGWidget.OCA_GeoMap.Ob&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Googling tells me that dojo is probably throwing this error due to whitespace at the end of the dijit template.&amp;nbsp; But since it's all done from deep in the (minified) arcGIS js library I'm not able to fiddle with it to confirm the cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried catching this error with a try/catch block, and the vertex handles then show up, and can be used to edit the shape, but when I deactivate the toolbar later, the vertex handles do not disappear, which I suspect is because the vertex editor wasn't properly set up, due to this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 01:30:27 GMT</pubDate>
    <dc:creator>TomBarrett</dc:creator>
    <dc:date>2013-05-27T01:30:27Z</dc:date>
    <item>
      <title>&amp;quot;Invalid template&amp;quot; error when activating edit toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510659#M47552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Given a polygon graphic created with the draw toolbar, I am activating the edit toolbar to modify it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// geoObj.polyObject is the polygon graphic
this.editToolbar = new esri.toolbars.Edit(this.map);
this.editToolbar.activate(esri.toolbars.Edit.EDIT_VERTICES, geoObj.polyObject);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is just like in the code samples, but I'm getting the following dojo error (in chrome and firefox):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Uncaught Error: Invalid template: &amp;lt;table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; data-dojo-attach-event="onkeypress:_onKeyPress" cellspacing="0"&amp;gt;
 &amp;lt;tbody class="dijitReset" data-dojo-attach-point="containerNode"&amp;gt;&amp;lt;/tbody&amp;gt;
&amp;lt;/table&amp;gt;

 serverapi.arcgisonline.com:34
_94.buildRendering serverapi.arcgisonline.com:34
_2cf serverapi.arcgisonline.com:15
_1123.buildRendering serverapi.arcgisonline.com:34
_d52.create serverapi.arcgisonline.com:34
_d52.postscript serverapi.arcgisonline.com:34
(anonymous function) serverapi.arcgisonline.com:15
_1._addControllers _VertexEditor.js:19
_1.constructor _VertexEditor.js:19
(anonymous function) serverapi.arcgisonline.com:15
_2.mixin.create _VertexEditor.js:19
_1._enableVertexEditing edit.js:19
_1.activate edit.js:19
ArcGISMapProvider.beginGeoEdit widget.js:4040
NGWidget.OCA_GeoMap.Geo.editStart widget.js:1827
NGWidget.OCA_GeoMap.Ob&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Googling tells me that dojo is probably throwing this error due to whitespace at the end of the dijit template.&amp;nbsp; But since it's all done from deep in the (minified) arcGIS js library I'm not able to fiddle with it to confirm the cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried catching this error with a try/catch block, and the vertex handles then show up, and can be used to edit the shape, but when I deactivate the toolbar later, the vertex handles do not disappear, which I suspect is because the vertex editor wasn't properly set up, due to this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 01:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510659#M47552</guid>
      <dc:creator>TomBarrett</dc:creator>
      <dc:date>2013-05-27T01:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: "Invalid template" error when activating edit toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510660#M47553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any insights on this?&amp;nbsp; It looks to me like a bug in the arcGIS JS and if there's a way to work around it I'd like to know!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 01:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510660#M47553</guid>
      <dc:creator>TomBarrett</dc:creator>
      <dc:date>2013-05-29T01:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: "Invalid template" error when activating edit toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510661#M47554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So with no responses here, I started trawling through the minified javascript.&amp;nbsp; It seemed to be trying to add the menu to support the deletion of vertices.&amp;nbsp; (NB this feature does not actually work - in the demo at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_feature_creation/"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_feature_creation/&lt;/A&gt;&lt;SPAN&gt; I right-click the verticies and no menu shows up.&amp;nbsp; Tested in Firefox.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I added { AllowDeleteVertices : false } to the options when activating the edit toolbar, the "invalid template" error went away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So that's my workaround for now.&amp;nbsp; Maybe it's useful to others experiencing this problem.&amp;nbsp; Hopefully ESRI can fix this API bug some time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 01:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-quot-invalid-template-amp-quot-error-when/m-p/510661#M47554</guid>
      <dc:creator>TomBarrett</dc:creator>
      <dc:date>2013-05-30T01:42:54Z</dc:date>
    </item>
  </channel>
</rss>

