Show several tags with JSON structure in Siemens s7 webserver
<p>I am using a Siemens S7-1200 PLC with integrated webserver.
I want to show multiple analog values from the PLC in the webpage using javascript.  With one tag it works great, but how do I add and present multiple tags using JSON structure?</p>

<p>I have done the following: 
 - Updated the javascript with a suggested code
 - Updated the htm file that the script reads from</p>

<p>But I do not know if i have done this correct and how do I then call
   for the different variables.</p>

<p><strong>THIS IS THE TABLE I WANT TO DISPKLAY THE DATA IN:</strong></p>

<pre><code>    &lt;table&gt;

&lt;tr&gt;
    &lt;td class="static_field"&gt;Nivå [m]:&lt;/td&gt;
    &lt;td class="output_field"&gt;&lt;label id="HMI_skalert"&gt;0&lt;/label&gt;&lt;/td&gt;     
&lt;/tr&gt;

&lt;tr&gt;                    
    &lt;td class="static_field"&gt;Masse [tonn]:&lt;/td&gt;
    &lt;td class="output_field"&gt;&lt;label id="Tank1_masse"&gt;0&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
</code></pre>

<hr>

<p><strong>SCRIPT:</strong></p>

<pre><code>&lt;script type="text/Javascript"&gt;
    $(document).ready(function(){
    $.ajaxSetup({ cache: false });
    setInterval(function() {
            $.getJSON("IOwebserver.htm", function(result){

               HMI_skalert= result.HMI_skalert  
                Tank1_masse=result.Tank1_masse

            });
        },1000);
        });
    &lt;/script&gt;
</code></pre>

<hr>

<p><strong>FILE:</strong>
IOwebserver.htm</p>

<pre><code>{
":="webdata".HMI_skalert:",
":="webdata".Tank1_masse:"
}
</code></pre>

<p>Thank you so much.</p>