<?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 'Print Templates using esri.request' sample not working in Internet Explorer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187334#M17372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just viewed the above sample fine in Google Chrome but when trying to view it in Internet Explorer I get a blank map with a javascript error (attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known issue? I am using IE7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 11:38:39 GMT</pubDate>
    <dc:creator>ChrisBuckmaster1</dc:creator>
    <dc:date>2012-04-11T11:38:39Z</dc:date>
    <item>
      <title>'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187334#M17372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just viewed the above sample fine in Google Chrome but when trying to view it in Internet Explorer I get a blank map with a javascript error (attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known issue? I am using IE7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187334#M17372</guid>
      <dc:creator>ChrisBuckmaster1</dc:creator>
      <dc:date>2012-04-11T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: 'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187335#M17373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;!doctype html&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at the top of the page says the page should be rendered using HTML5. IE7 does not support HTML5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch to IE9, or put this declaration in its place:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Lewin&lt;/SPAN&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.marklewin.com"&gt;www.marklewin.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:52:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187335#M17373</guid>
      <dc:creator>MarkLewin</dc:creator>
      <dc:date>2012-04-11T11:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: 'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187336#M17374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just gave that a go but it is still showing no map and the js error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 12:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187336#M17374</guid>
      <dc:creator>ChrisBuckmaster1</dc:creator>
      <dc:date>2012-04-11T12:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: 'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187337#M17375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like the sample has a trailing comma - IE has a problem with those. You'll find the extra comma in the section of code that creates the print widget. Remove the comma after url:app.printUrl and the app should run in IE. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; app.printer = new esri.dijit.Print({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "map": app.map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "templates": templates,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: app.printUr,&amp;nbsp; &amp;lt;---- Trailing comma is here----&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dojo.byId("print_button"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.printer.startup();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll get the official sample fixed as soon as possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187337#M17375</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: 'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187338#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This line:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;!doctype html&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;at the top of the page says the page should be rendered using HTML5. IE7 does not support HTML5.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not true�?? while IE7 doesn't support most of the technologies commonly referred to as "HTML5", the simple doctype works for IE7. For example, see our sample that shows new query functionality at 10.1:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_statistics.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_statistics.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That sample uses the simple doctype and works w/o issue in IE7. As Kelly pointed out, the real issue is the trailing comma.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 18:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187338#M17376</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-11T18:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'Print Templates using esri.request' sample not working in Internet Explorer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187339#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is not true�?? while IE7 doesn't support most of the technologies commonly referred to as "HTML5", the simple doctype works for IE7. For example, see our sample that shows new query functionality at 10.1:&amp;nbsp; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_statistics.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_statistics.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That sample uses the simple doctype and works w/o issue in IE7. As Kelly pointed out, the real issue is the trailing comma.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Be especially carefully with trailing commas in JSON.&amp;nbsp; It will break IE every time.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I highly recommend a json validator like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsonformatter.curiousconcept.com/"&gt;http://jsonformatter.curiousconcept.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 19:28:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-templates-using-esri-request-sample-not/m-p/187339#M17377</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-11T19:28:00Z</dc:date>
    </item>
  </channel>
</rss>

