<?xml version="1.0" ?> <configuration> <title>{REVIEW_DESC}</title> <script type="text/javascript"> var Att = {Locations: "Locations"} function hideDiv() { if (Att.Locations.toString() == ''){ //if the Att object's location is cast to a string and is empty document.getElementById("testdiv").style.visibility= 'hidden'; }else{ //if it is not an empty string //if it is not an empty string document.getElementById("testdiv").style.visibility='visible';}; } </script> <description> <![CDATA[ <div id="testdiv"> <a href="{'http://146.129.110.197/flexviewers/app/Locations/'+Att.Locations.toString()}" target=_blank>Location</a> </div> Location: {Locations} // HAS DATA I want to use in the javascript Location2: {Att.Locations.toString()} // NO DATA coming from javascript </configuration>
var Att = {Location: "Location"} function hideDiv() { if (Att.Location.toString() == ''){ //if the Att object's location is cast to a string and is empty document.getElementById("testdiv").style.visibility= 'hidden'; //hide the div }else{ //if it is not an empty string document.getElementById("testdiv").style.visibility='visible';//show the div }; };
Att.eLocation.toString()
<div id="testdiv"> <a href="{'http://000.000.000.000/flexviewers/app/'+Att.Location.toString()}" target=_blank>Location</a> </div>
var Att = {Location: "Location"} function hideDiv() { if (Att.Location.toString() == ''){ //if the Att object's location is cast to a string and is empty document.getElementById("testdiv").style.visibility= 'hidden';} //hide the div }else{ //if it is not an empty string document.getElementById("testdiv").style.visibility='visible';}//show the div }; }
var Att = {Location: "Location"} function hideDiv() { if (Att = '') {document.getElementById("testdiv").style.visibility= 'hidden';} }else{ document.getElementById("testdiv").style.visibility='visible';} }; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.