<?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: ISSUE WITH TEXT SHOWING BEFORE THE MAP IS LOADED in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-text-showing-before-the-map-is-loaded/m-p/586789#M54823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My advice would be this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Put the offending text inside a div with a unique ID&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In your CSS add the "display:none" CSS property for that item&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;At the end of your init routine, add some javascript code to reverse the CSS visibility:&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;PRE class="plain" name="code"&gt;theDiv = document.getElementById("&amp;lt;your Div ID here&amp;gt;"); theDiv.setAttribute("display","inline");&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to support an older version of IE, which code you use to set the CSS property might change. &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; Dojo also &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/reference-guide/1.7/dojo/setStyle.html" rel="nofollow" target="_blank"&gt;has a way to set the CSS properties of a DOM element&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 18:01:06 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-07-23T18:01:06Z</dc:date>
    <item>
      <title>ISSUE WITH TEXT SHOWING BEFORE THE MAP IS LOADED</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-text-showing-before-the-map-is-loaded/m-p/586788#M54822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The text that belongs to the ContentPane shows/loads on the screen before the map viewer does. Is there a way to hide the text before the app fully loads?&amp;nbsp; Here's the link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://gismaps.carlsbadca.gov/carlsbadclip/index.html" rel="nofollow" target="_blank"&gt;http://gismaps.carlsbadca.gov/carlsbadclip/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spoke with someone from the Javascript island at the conference and he suggested I change the order in which I load the stylesheet in the app- I tried it, but its still an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone run into this same issue? Do you have a solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 17:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-text-showing-before-the-map-is-loaded/m-p/586788#M54822</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-07-23T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: ISSUE WITH TEXT SHOWING BEFORE THE MAP IS LOADED</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-text-showing-before-the-map-is-loaded/m-p/586789#M54823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My advice would be this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Put the offending text inside a div with a unique ID&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In your CSS add the "display:none" CSS property for that item&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;At the end of your init routine, add some javascript code to reverse the CSS visibility:&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;PRE class="plain" name="code"&gt;theDiv = document.getElementById("&amp;lt;your Div ID here&amp;gt;"); theDiv.setAttribute("display","inline");&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to support an older version of IE, which code you use to set the CSS property might change. &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; Dojo also &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/reference-guide/1.7/dojo/setStyle.html" rel="nofollow" target="_blank"&gt;has a way to set the CSS properties of a DOM element&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 18:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-text-showing-before-the-map-is-loaded/m-p/586789#M54823</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-07-23T18:01:06Z</dc:date>
    </item>
  </channel>
</rss>

