<?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: show/hide hyperlinks in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241232#M5670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Austinstig but I'm still getting the link regardless if {Locations} is empty string or not.&amp;nbsp; Here is my popup xml.&amp;nbsp; Am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;title&amp;gt;{REVIEW_DESC}&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var Att = {Locations: "Locations"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; function hideDiv() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (Att.Locations.toString() == ''){ //if the Att object's location is cast to a string and is empty&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; document.getElementById("testdiv").style.visibility= 'hidden';} //hide the div&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }else{ //if it is not an empty string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; document.getElementById("testdiv").style.visibility='visible';}//show the div&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;![CDATA[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div id="testdiv"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;a href="{'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://000.000.000.0/flexviewers/Location/'+Att.eLocation.toString" rel="nofollow" target="_blank"&gt;http://000.000.000.0/flexviewers/Location/'+Att.eLocation.toString&lt;/A&gt;&lt;SPAN&gt;()}"&amp;nbsp; target=_blank&amp;gt;Location&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 19:32:15 GMT</pubDate>
    <dc:creator>DavidBrooks3</dc:creator>
    <dc:date>2012-07-18T19:32:15Z</dc:date>
    <item>
      <title>show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241226#M5664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm wanting to show a popup hyperlink if there is feature data or hide it if the value is empty string or null.&amp;nbsp; I've searched the forum but was unable to locate a solution.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 21:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241226#M5664</guid>
      <dc:creator>DavidBrooks3</dc:creator>
      <dc:date>2012-07-16T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241227#M5665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can put the link in an html anchor tag (&amp;lt;a&amp;gt;) and add it to the htmltext attribute of a text tag (&amp;lt;mx:Text&amp;gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Put the text tag as a child in the infoWindow (map.infoWindow). Then call the show/hide methods on the infoWindow when the user interacts with a feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 19:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241227#M5665</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2012-07-17T19:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241228#M5666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a snip from my popup xml where I am trying to show/hide a link.&amp;nbsp; How is the {Location} parameter value used in JavaScript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT] &amp;lt;title&amp;gt;{REVIEW_DESC}&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT] &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;nbsp; var Att = &lt;/SPAN&gt;&lt;STRONG&gt;{Location: "Location"}&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;nbsp; function hideDiv() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;nbsp; if (Att = '')&amp;nbsp; {document.getElementById("testdiv").style.display = 'none';}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT] &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT] &amp;lt;description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;nbsp; &amp;lt;![CDATA[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[LEFT][/LEFT]&amp;lt;div id="testdiv"&amp;gt;&amp;lt;A href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://000.000.000.000/flexviewers/app/" rel="nofollow" target="_blank"&gt;http://000.000.000.000/flexviewers/app/&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{Location}&lt;/STRONG&gt;&lt;SPAN&gt;" target=_blank&amp;gt;Location&amp;lt;/A&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]]&amp;gt;&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 21:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241228#M5666</guid>
      <dc:creator>DavidBrooks3</dc:creator>
      <dc:date>2012-07-17T21:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241229#M5667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the Att variable is an object. You need to get the value of 'Location' out of the Att object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So your script would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var Att = {Location: "Location"}
function hideDiv() {
if (Att = '') {document.getElementById("testdiv").style.visibility= 'hidden';}
}else{
 document.getElementById("testdiv").style.visibility='visible';}
};
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where you have the "testdiv" already added to the DOM somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div id="testdiv"&amp;gt;
&amp;lt;a href="{'http://000.000.000.000/flexviewers/app/'+Att.Location.toString()}"&amp;nbsp; target=_blank&amp;gt;Location&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241229#M5667</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2021-12-11T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241230#M5668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Therein lies my issue.&amp;nbsp; I already have the {Location} value provided in the xml of the popup.&amp;nbsp; I'm attempting to verify in javascript if it is an empty string and if so to not show the div.&amp;nbsp; How do I use the {Location} value in javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 22:22:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241230#M5668</guid>
      <dc:creator>DavidBrooks3</dc:creator>
      <dc:date>2012-07-17T22:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241231#M5669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry-- misunderstood.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you would like to know if the location string (part of the URI) is empty?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have the div:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;div id="testdiv"&amp;gt;
&amp;lt;a href="{'http://000.000.000.000/flexviewers/app/'+Att.Location.toString()}"&amp;nbsp; target=_blank&amp;gt;Location&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in javascript you'll use similar code as above, but add a check to the location:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will use the equality operator '=='.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;


var Att = {Location: "Location"}
function hideDiv() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Att.Location.toString() == ''){ //if the Att object's location is cast to a string and is empty
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("testdiv").style.visibility= 'hidden';} //hide the div
&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{ //if it is not an empty string
 document.getElementById("testdiv").style.visibility='visible';}//show the div
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this closer to what your asking?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241231#M5669</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2021-12-11T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241232#M5670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Austinstig but I'm still getting the link regardless if {Locations} is empty string or not.&amp;nbsp; Here is my popup xml.&amp;nbsp; Am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;title&amp;gt;{REVIEW_DESC}&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var Att = {Locations: "Locations"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; function hideDiv() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (Att.Locations.toString() == ''){ //if the Att object's location is cast to a string and is empty&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; document.getElementById("testdiv").style.visibility= 'hidden';} //hide the div&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }else{ //if it is not an empty string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; document.getElementById("testdiv").style.visibility='visible';}//show the div&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;![CDATA[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div id="testdiv"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;a href="{'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://000.000.000.0/flexviewers/Location/'+Att.eLocation.toString" rel="nofollow" target="_blank"&gt;http://000.000.000.0/flexviewers/Location/'+Att.eLocation.toString&lt;/A&gt;&lt;SPAN&gt;()}"&amp;nbsp; target=_blank&amp;gt;Location&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 19:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241232#M5670</guid>
      <dc:creator>DavidBrooks3</dc:creator>
      <dc:date>2012-07-18T19:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241233#M5671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let's see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had in error in my earlier code (extra brackets).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

var Att = {Location: "Location"}
function hideDiv() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Att.Location.toString() == ''){ //if the Att object's location is cast to a string and is empty
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("testdiv").style.visibility= 'hidden'; //hide the div
&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{ //if it is not an empty string
 document.getElementById("testdiv").style.visibility='visible';//show the div
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
};
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in your code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Att.eLocation.toString()
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;"eLocation" is not a property of the Att object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to debug your JavaScript by using something like firebug plugin in firefox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241233#M5671</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2021-12-11T12:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241234#M5672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning Autsin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I do not have a Java debugger so I'm driving blind.&amp;nbsp; The crux of my issue is this.&amp;nbsp; The popup xml produces {Locations} data, so I have what I need in that respect.&amp;nbsp; I am failing to use the {Locations} data in the javascript.&amp;nbsp; Please disregard the "eLocations" typo.&amp;nbsp; I rename "Location" to "eLocation" in the appropriate places since that is the name of the field in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;configuration&amp;gt; 
 &amp;lt;title&amp;gt;{REVIEW_DESC}&amp;lt;/title&amp;gt;
 &amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp; var Att = &lt;STRONG&gt;{Locations: "Locations"}&lt;/STRONG&gt;
&amp;nbsp; function hideDiv() {
&amp;nbsp; if (Att.Locations.toString() == ''){&amp;nbsp; //if the Att object's location is cast to a string and is empty
&amp;nbsp; document.getElementById("testdiv").style.visibility= 'hidden'; 
&amp;nbsp; }else{ //if it is not an empty string&amp;nbsp; //if it is not an empty string
&amp;nbsp; document.getElementById("testdiv").style.visibility='visible';};
&amp;nbsp; }
 &amp;lt;/script&amp;gt;
 &amp;lt;description&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;lt;div id="testdiv"&amp;gt;
&amp;lt;a href="{'http://146.129.110.197/flexviewers/app/Locations/'+Att.Locations.toString()}"&amp;nbsp; target=_blank&amp;gt;Location&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
Location: &lt;STRONG&gt;{Locations}&lt;/STRONG&gt; // HAS DATA I want to use in the javascript
Location2: {Att.Locations.toString()}&amp;nbsp; // NO DATA coming from javascript

&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time and help,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241234#M5672</guid>
      <dc:creator>DavidBrooks3</dc:creator>
      <dc:date>2021-12-11T12:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: show/hide hyperlinks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241235#M5673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you successfully getting your "Locations" data to load into an object?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you have a feature Layer with the field [Location] containing a link for each feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you select (e.g. RollOver, click, etc.) a feature you should get it (i.e. event.target ). This should be returned to you as a graphic although you may need to cast it to a graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the event.target graphic, get the attributes (event.target).attributes. Then get the position of the [Location] attribute with something like "attributes[0]" or attributes["Location"]. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should return the link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I usually code in flex and only vaguely familiar with the javascript API (although esri tells me there web api's are all similar). So i have described a logic I would use. I apologize for not solving your issue!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 12:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/show-hide-hyperlinks/m-p/241235#M5673</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2012-07-20T12:09:05Z</dc:date>
    </item>
  </channel>
</rss>

