<?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 Save a graphic to Local Storage and try to load it in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-a-graphic-to-local-storage-and-try-to-load-it/m-p/289665#M26642</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'm trying to save a graphic to local Storage (after converting it to Json). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to reload it, it does not add it. I tried to do a lot of manipulations on the object but nothing helped. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enclosed with the code that I'm using and a picture that shows that the local storage is OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;few remarks about the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When I copy the string from the prompt alert and put it in NotePad, I see question marks at the beginning and at the end of the string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I aslo tried &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;graphicJson = dojo.toJson(graphic.toJson()); &lt;/SPAN&gt;&lt;SPAN&gt;as I saw in one of the threads in the forom but it did not help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In order to reproduce the problem, you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]a. Add a point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b. Click save (at the bottom of the page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c. clear Graphics (at the upper right side of the page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;d. click load and see that the point is not displayed[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 12:58:34 GMT</pubDate>
    <dc:creator>MiriEshel</dc:creator>
    <dc:date>2012-10-18T12:58:34Z</dc:date>
    <item>
      <title>Save a graphic to Local Storage and try to load it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-a-graphic-to-local-storage-and-try-to-load-it/m-p/289665#M26642</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'm trying to save a graphic to local Storage (after converting it to Json). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to reload it, it does not add it. I tried to do a lot of manipulations on the object but nothing helped. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enclosed with the code that I'm using and a picture that shows that the local storage is OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;few remarks about the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When I copy the string from the prompt alert and put it in NotePad, I see question marks at the beginning and at the end of the string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I aslo tried &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;graphicJson = dojo.toJson(graphic.toJson()); &lt;/SPAN&gt;&lt;SPAN&gt;as I saw in one of the threads in the forom but it did not help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In order to reproduce the problem, you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]a. Add a point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b. Click save (at the bottom of the page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c. clear Graphics (at the upper right side of the page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;d. click load and see that the point is not displayed[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 12:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-a-graphic-to-local-storage-and-try-to-load-it/m-p/289665#M26642</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2012-10-18T12:58:34Z</dc:date>
    </item>
  </channel>
</rss>

