<?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: Text only SearchWidget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/text-only-searchwidget/m-p/506641#M47133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm answering my own question.... There were some typo's in the original code which I needed to fix, so here they are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These changes come from &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15987"&gt;http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15987&lt;/A&gt;&lt;SPAN&gt; Thanks to everyone who posted fixes - yes I copied and pasted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are more fixes reported on this site than those liseted below, in particular issues with IE were addressed but I'll be looking at that later as I was just trying to get the text search working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to index.html (update to JS 1.4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; a) Change three occurrences of 1.2 to 1.4 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; b) enclose the onPageResizeHandler function inside a try..catch block &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to WidgetFrame.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; c) There is a typo in the postCreate function (approx line 83) Change: this.titleNode = dojo.query("#.widgetTitle", this.domNode)[0]; To: this.titleNode = dojo.query(".widgetTitle", this.domNode)[0]; by removing the #. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; d) Insert the following statement near the top of the file dojo.require("dijit._Contained"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to _Widget.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; e) Insert the following statement near the top of the file dojo.require("dijit._Contained"); Additionally, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; f) add the .json MIME type to your web server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to MapManager.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (approx. lines 183 and following, there is a syntax error : if (layer.loaded) { // IE caching behavior, loaded is true right away. this._layerLoadHander(layer); } else { dojo.connect(layer, "onLoad", dojo.hitch(this,"_layerLoadHandler", layer)); } --&amp;gt; this._layerLoadHander has to be replaced by this._layerLoadHandler in order to effectively call the function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For version 1.3 or higher, you use "esri.config" in place of "esriConfig". Although "esriConfig" will continue to work with version 1.3, you should update your applications to use "esri.config" instead. (index.html and Datamanager.js&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 22:22:53 GMT</pubDate>
    <dc:creator>AthinaPascoe-Bell</dc:creator>
    <dc:date>2010-10-05T22:22:53Z</dc:date>
    <item>
      <title>Text only SearchWidget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/text-only-searchwidget/m-p/506640#M47132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, my searchWidget displays the graphical search by default. How do I get it to use the Text search instead? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Athina.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 00:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/text-only-searchwidget/m-p/506640#M47132</guid>
      <dc:creator>AthinaPascoe-Bell</dc:creator>
      <dc:date>2010-10-05T00:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text only SearchWidget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/text-only-searchwidget/m-p/506641#M47133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm answering my own question.... There were some typo's in the original code which I needed to fix, so here they are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These changes come from &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15987"&gt;http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=15987&lt;/A&gt;&lt;SPAN&gt; Thanks to everyone who posted fixes - yes I copied and pasted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are more fixes reported on this site than those liseted below, in particular issues with IE were addressed but I'll be looking at that later as I was just trying to get the text search working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to index.html (update to JS 1.4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; a) Change three occurrences of 1.2 to 1.4 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; b) enclose the onPageResizeHandler function inside a try..catch block &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to WidgetFrame.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; c) There is a typo in the postCreate function (approx line 83) Change: this.titleNode = dojo.query("#.widgetTitle", this.domNode)[0]; To: this.titleNode = dojo.query(".widgetTitle", this.domNode)[0]; by removing the #. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; d) Insert the following statement near the top of the file dojo.require("dijit._Contained"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to _Widget.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; e) Insert the following statement near the top of the file dojo.require("dijit._Contained"); Additionally, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; f) add the .json MIME type to your web server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes to MapManager.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (approx. lines 183 and following, there is a syntax error : if (layer.loaded) { // IE caching behavior, loaded is true right away. this._layerLoadHander(layer); } else { dojo.connect(layer, "onLoad", dojo.hitch(this,"_layerLoadHandler", layer)); } --&amp;gt; this._layerLoadHander has to be replaced by this._layerLoadHandler in order to effectively call the function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For version 1.3 or higher, you use "esri.config" in place of "esriConfig". Although "esriConfig" will continue to work with version 1.3, you should update your applications to use "esri.config" instead. (index.html and Datamanager.js&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 22:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/text-only-searchwidget/m-p/506641#M47133</guid>
      <dc:creator>AthinaPascoe-Bell</dc:creator>
      <dc:date>2010-10-05T22:22:53Z</dc:date>
    </item>
  </channel>
</rss>

