<?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: pop-up hyperlinks not working: spaces getting translated to %2520 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514966#M14377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I don't understand is #3 in this list:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) if I copy a URL complete with the %20s, from Notepad e.g. and paste into any browser, the browser &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;correctly &lt;/SPAN&gt;&lt;SPAN&gt;interprets the %20.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) when I used those URLs in FlexViewer 2.x (with %20s) the links in my pop-ups were &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;fine&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) only in v3.x when I styled the pop-up with html, did the %2520s appear ... that's why I asked what is the "it" because I don't see how what I'm doing now (styling via html) is different from my browser's perspective.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already removed the %20s and my links are working -- my ongoing questions are more of a curiosity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 21:02:34 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-25T21:02:34Z</dc:date>
    <item>
      <title>pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514960#M14371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am configuring a pop-up in FlexViewer 3.1 using HTML.&amp;nbsp; One of the items in the pop references a field in my map service that contains a fully qualified url.&amp;nbsp; The urls all use %20 instead of spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previously in my v2.4 of this same web application, the pop-ups work fine.&amp;nbsp; They are configured in the &amp;lt;configuration&amp;gt; tag:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="PLANURL" alias="Plan Link:" visible="true"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With version 3.1 however, I though I'd use HTML within the &amp;lt;description&amp;gt; tag to style the hyperlink so that to the user it looks something like this:&amp;nbsp; Plan: Smith River Conservation Plan (Link)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;description&amp;gt;&amp;lt;![CDATA[&amp;lt; &amp;lt;br&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Plan:&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; {PLANNAME} &amp;lt;a href="{PLANURL}"&amp;gt; (Link) &amp;lt;/a&amp;gt; ]]&amp;gt;&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem:&amp;nbsp; when I click on the Link in the pop-up, I can't get to the url because all instances of %20 (which represent spaces) have been changed to %2520.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why the %2520 - I can't figure out if this is a problem with my href syntax, or if it's an Adobe thing ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated - thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514960#M14371</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-24T20:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514961#M14372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Katie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is a strange one, one point which maybe be unrelated or just a typo on your post but you seem to have an extra opening tag in your CDATA:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;description&amp;gt;&amp;lt;![CDATA[&amp;lt; &amp;lt;br&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Plan:&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; {PLANNAME} &amp;lt;a href="{PLANURL}"&amp;gt; (Link) &amp;lt;/a&amp;gt; ]]&amp;gt;&amp;lt;/description&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should this not be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;description&amp;gt;&amp;lt;![CDATA[&amp;lt;br&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Plan:&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; {PLANNAME} &amp;lt;a href="{PLANURL}"&amp;gt; (Link) &amp;lt;/a&amp;gt; ]]&amp;gt;&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 21:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514961#M14372</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-04-24T21:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514962#M14373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you seem to have an extra opening tag in your CDATA:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whoops; I selected just the line item in question for my post, and missed that typo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think it's relevant but URL is pointing to Salesforce ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, it worked fine when in version 2.4, but using the href in 3.1 causes the weird %2520, so I have to believe that is where the problem lies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried looking &lt;/SPAN&gt;&lt;A href="http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html"&gt;here&lt;/A&gt;&lt;SPAN&gt;, but I'm a HTML novice that I can't figure out where it's hidden.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 21:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514962#M14373</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-24T21:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514963#M14374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, the browser will interpret spaces in the url as %20.&amp;nbsp; also, will interpret % sign as %25, so what is happening is that it is substituting the %25 for the %, then putting the 20 on the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure all the ways to deal with this in the flex app.&amp;nbsp; You could use the popuprendererskin to replace all %20's in that field with a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Easiest way, since you said it is your service, would be to do a global find/replace on that field in ArcMap and replace all %20's with a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do have the source code, and want to go the popuprenderskin route, this is what you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside the commit properties function there is a &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos)&lt;/PRE&gt;&lt;SPAN&gt; loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add this inside that loop, &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if (formattedAttributes[fieldInfo.fieldName] == "PLANURL"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedAttributes["PLANURL"] = ((formattedAttributes["PLANURL"]).replace("%20"," "));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will replace ALL %20's (in that field) with a space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514963#M14374</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T22:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514964#M14375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; so what is happening is that &lt;STRONG&gt;it&lt;/STRONG&gt; is substituting the %25 for the % &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is Flex the "it"? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will opt for doing a find/replace in my attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate you responding, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 19:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514964#M14375</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-25T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514965#M14376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Well,&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;the browser &lt;/SPAN&gt;will interpret spaces in the url as %20. also, will interpret % sign as %25, so what is happening is that it is substituting the %25 for the %, then putting the 20 on the end.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"It", is the browser. type any address in the browser that has a space in the pathname and hit enter, you will magically see the %20 appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 20:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514965#M14376</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-04-25T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514966#M14377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I don't understand is #3 in this list:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) if I copy a URL complete with the %20s, from Notepad e.g. and paste into any browser, the browser &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;correctly &lt;/SPAN&gt;&lt;SPAN&gt;interprets the %20.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) when I used those URLs in FlexViewer 2.x (with %20s) the links in my pop-ups were &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;fine&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) only in v3.x when I styled the pop-up with html, did the %2520s appear ... that's why I asked what is the "it" because I don't see how what I'm doing now (styling via html) is different from my browser's perspective.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already removed the %20s and my links are working -- my ongoing questions are more of a curiosity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 21:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514966#M14377</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-25T21:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514967#M14378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Katie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; To answer your question then, because you are using the description tag what happen under the hood is that all the text goes in a Spark TextArea and uses a TextConverter.TEXT_FIELD_HTML_FORMAT which converts all the text and links to html format i.e encoding spaces with %20 and % as %25. Bottom line is that the PopUp is not expecting any of the text to already be html encoded and thus re-encodes the text.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 11:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514967#M14378</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-04-26T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: pop-up hyperlinks not working: spaces getting translated to %2520</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514968#M14379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for that explanation!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/pop-up-hyperlinks-not-working-spaces-getting/m-p/514968#M14379</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-26T15:38:23Z</dc:date>
    </item>
  </channel>
</rss>

