<?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 Zoom slider doesn't load for sites in XML Mode in Firefox/Chrome. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-slider-doesn-t-load-for-sites-in-xml-mode-in/m-p/194381#M17939</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'd been baffled by this one for a couple days and it's taken quite a while to track down exactly what was going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're working on a project in Lift (a Scala based webframework), which for some good reasons (see &lt;/SPAN&gt;&lt;A href="http://hsivonen.iki.fi/doctype/"&gt;http://hsivonen.iki.fi/doctype/&lt;/A&gt;&lt;SPAN&gt; ) defaults to serving pages with a content-type of "application/xml+xhtml".&amp;nbsp; This puts browsers into a "XML mode", which restricts some actions on the DOM which are valid in the various HTML modes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the maps mostly work in XML mode, attempting to turn on the zoom slider causes a DOM Exception 7 in Chrome and a different error in Firefox and doesn't appear, I couldn't really track this down any further in the compressed version of the js the API provides.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up a simple demonstration of the problem at &lt;/SPAN&gt;&lt;A href="http://dev.mhnltd.co.uk/norgg/maptest.xhtml"&gt;http://dev.mhnltd.co.uk/norgg/maptest.xhtml&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://dev.mhnltd.co.uk/norgg/maptest.html"&gt;http://dev.mhnltd.co.uk/norgg/maptest.html&lt;/A&gt;&lt;SPAN&gt; .&amp;nbsp; These are actually the same symlinked file, but served up with different content-types by apache due to the different file extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now we've worked around this for ourselves by changing the content type, but it would be nice if this could be fixed.&amp;nbsp; If anyone else has the same problem in Lift, the necessary line for your Boot.scala file to switch to "text/html" as the default content-type is: &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;LiftRules.useXhtmlMimeType = false&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 13:21:26 GMT</pubDate>
    <dc:creator>JohnTurner</dc:creator>
    <dc:date>2011-01-05T13:21:26Z</dc:date>
    <item>
      <title>Zoom slider doesn't load for sites in XML Mode in Firefox/Chrome.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-slider-doesn-t-load-for-sites-in-xml-mode-in/m-p/194381#M17939</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'd been baffled by this one for a couple days and it's taken quite a while to track down exactly what was going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're working on a project in Lift (a Scala based webframework), which for some good reasons (see &lt;/SPAN&gt;&lt;A href="http://hsivonen.iki.fi/doctype/"&gt;http://hsivonen.iki.fi/doctype/&lt;/A&gt;&lt;SPAN&gt; ) defaults to serving pages with a content-type of "application/xml+xhtml".&amp;nbsp; This puts browsers into a "XML mode", which restricts some actions on the DOM which are valid in the various HTML modes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the maps mostly work in XML mode, attempting to turn on the zoom slider causes a DOM Exception 7 in Chrome and a different error in Firefox and doesn't appear, I couldn't really track this down any further in the compressed version of the js the API provides.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up a simple demonstration of the problem at &lt;/SPAN&gt;&lt;A href="http://dev.mhnltd.co.uk/norgg/maptest.xhtml"&gt;http://dev.mhnltd.co.uk/norgg/maptest.xhtml&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://dev.mhnltd.co.uk/norgg/maptest.html"&gt;http://dev.mhnltd.co.uk/norgg/maptest.html&lt;/A&gt;&lt;SPAN&gt; .&amp;nbsp; These are actually the same symlinked file, but served up with different content-types by apache due to the different file extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now we've worked around this for ourselves by changing the content type, but it would be nice if this could be fixed.&amp;nbsp; If anyone else has the same problem in Lift, the necessary line for your Boot.scala file to switch to "text/html" as the default content-type is: &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;LiftRules.useXhtmlMimeType = false&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-slider-doesn-t-load-for-sites-in-xml-mode-in/m-p/194381#M17939</guid>
      <dc:creator>JohnTurner</dc:creator>
      <dc:date>2011-01-05T13:21:26Z</dc:date>
    </item>
  </channel>
</rss>

