<?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: get rest service value to html text in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451558#M41727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is that code modified to use a url parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
&amp;nbsp; &amp;lt;title&amp;gt;Traffic Camera List&amp;lt;/title&amp;gt;
&lt;SPAN&gt;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcode.jquery.com%2Fjquery-1.12.0.min.js" target="_blank"&gt;https://code.jquery.com/jquery-1.12.0.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &amp;lt;script src="trafficrest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;


&amp;lt;body&amp;gt;
&amp;nbsp; &amp;lt;div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;Welcome to the Traffic Camera List.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;$(document).ready(function () {
&amp;nbsp; var getUrlParameter = function getUrlParameter(sParam) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var sPageURL = decodeURIComponent(window.location.search.substring(1)),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sURLVariables = sPageURL.split('&amp;amp;'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sParameterName,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i;

&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt; sURLVariables.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sParameterName = sURLVariables&lt;I&gt;.split('=');&lt;/I&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sParameterName[0] === sParam) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return sParameterName[1] === undefined ? true : sParameterName[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }; 
&amp;nbsp; $.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'GET',
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fww3.yorkmaps.ca%2Farcgis%2Frest%2Fservices%2FTransportation%2FYR_TrafficCameras%2FMapServer%2F0%2Fquery%3Fwhere%3DLOCATIONID%253D" target="_blank"&gt;https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query?where=LOCATIONID%3D&lt;/A&gt;&lt;SPAN&gt;' + getUrlParameter('location') + '&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnDistinctValues=false&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;f=json',&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get_param: 'value'
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataType: 'json',
&amp;nbsp;&amp;nbsp;&amp;nbsp; success: function (data) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(data.features, function (index, element) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('body').append($('&amp;lt;div&amp;gt;' + element.attributes.CAM_LOCATION + '&amp;lt;/div&amp;gt;'));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Evan.html?location=41&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:09:00 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-11T20:09:00Z</dc:date>
    <item>
      <title>get rest service value to html text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451556#M41725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find info on how to query a rest service to get a value and put it into text on a webpage . . . using js / html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution here seems straight forward&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/48012"&gt;jQuery &amp;amp;gt; REST &amp;amp;gt; ParksFinder Bonus?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However I'm looking to grab just one item value... something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;$(document).ready(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;()&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;{&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.ajax ( {&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; type: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'GET'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; url: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'&lt;A href="https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query" title="https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query"&gt;https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query&lt;/A&gt;​​?where=LOCATIONID&lt;SPAN style="color: #0000ff; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;%3D &lt;/SPAN&gt;**JSVARIABLE** &amp;amp;f=json'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; data: { get_param: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'value'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; },&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; dataType: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'json'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; success: &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; (data) { $.each( data.features, &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;(index, element) {&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; $(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;'classname').append($('&amp;lt;div&amp;gt;' + element.attributes.CAM_LOCATION + '&amp;lt;/div&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;) );&amp;nbsp; } ); } } );&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;I think the success parameter configured correctly would give me something useful...?! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Any guidance would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Cheers. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query" title="https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query"&gt;https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 21:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451556#M41725</guid>
      <dc:creator>EvanSepa</dc:creator>
      <dc:date>2016-01-29T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: get rest service value to html text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451557#M41726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could run a query geoprocessing service, and publish this service then you can use the query in your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 21:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451557#M41726</guid>
      <dc:creator>ChadKopplin</dc:creator>
      <dc:date>2016-01-29T21:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: get rest service value to html text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451558#M41727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is that code modified to use a url parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
&amp;nbsp; &amp;lt;title&amp;gt;Traffic Camera List&amp;lt;/title&amp;gt;
&lt;SPAN&gt;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcode.jquery.com%2Fjquery-1.12.0.min.js" target="_blank"&gt;https://code.jquery.com/jquery-1.12.0.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &amp;lt;script src="trafficrest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;


&amp;lt;body&amp;gt;
&amp;nbsp; &amp;lt;div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;Welcome to the Traffic Camera List.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;$(document).ready(function () {
&amp;nbsp; var getUrlParameter = function getUrlParameter(sParam) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var sPageURL = decodeURIComponent(window.location.search.substring(1)),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sURLVariables = sPageURL.split('&amp;amp;'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sParameterName,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i;

&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt; sURLVariables.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sParameterName = sURLVariables&lt;I&gt;.split('=');&lt;/I&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sParameterName[0] === sParam) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return sParameterName[1] === undefined ? true : sParameterName[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }; 
&amp;nbsp; $.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'GET',
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fww3.yorkmaps.ca%2Farcgis%2Frest%2Fservices%2FTransportation%2FYR_TrafficCameras%2FMapServer%2F0%2Fquery%3Fwhere%3DLOCATIONID%253D" target="_blank"&gt;https://ww3.yorkmaps.ca/arcgis/rest/services/Transportation/YR_TrafficCameras/MapServer/0/query?where=LOCATIONID%3D&lt;/A&gt;&lt;SPAN&gt;' + getUrlParameter('location') + '&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnDistinctValues=false&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;f=json',&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get_param: 'value'
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataType: 'json',
&amp;nbsp;&amp;nbsp;&amp;nbsp; success: function (data) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(data.features, function (index, element) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('body').append($('&amp;lt;div&amp;gt;' + element.attributes.CAM_LOCATION + '&amp;lt;/div&amp;gt;'));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Evan.html?location=41&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451558#M41727</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: get rest service value to html text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451559#M41728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;success: function (data) {&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; $.each(data.features, function (index, element) {&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.title').append($('&amp;lt;div&amp;gt;' + element.attributes.CAM_LOCATION + '&amp;lt;/div&amp;gt;'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.camid').append($('&amp;lt;span&amp;gt;' + element.attributes.LOCATIONID + '&amp;lt;/span&amp;gt;'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.position').append($('&amp;lt;span&amp;gt;' + element.attributes.CAM_POSITION + '&amp;lt;/span&amp;gt;'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.lat').append($('&amp;lt;span&amp;gt;' + element.attributes.LATITUDE + '&amp;lt;/span&amp;gt;'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.long').append($('&amp;lt;span&amp;gt;' + element.attributes.LONGITUDE + '&amp;lt;/span&amp;gt;'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#refimgid').attr('src', './loc' + element.attributes.LOCATIONID + 'R.jpg' );&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it outputs various attributes to various locations in my html...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-rest-service-value-to-html-text/m-p/451559#M41728</guid>
      <dc:creator>EvanSepa</dc:creator>
      <dc:date>2016-02-09T18:37:46Z</dc:date>
    </item>
  </channel>
</rss>

