Note that there are some explanatory texts on larger screens.

plurals
  1. POButton selections displayed in table
    primarykey
    data
    text
    <p>I am trying to get my button selections to display in a table on my web application. Bellow you find the pieces of code that relate to my 1. My function which allows for the selections (may not even be relevant..), 2. the buttons which you can select in order to set the parameters, and 3 the table with class name and the rows where they will go. I've been struggling with this! Please Help! </p> <p>My function:</p> <pre><code>function setClip(val) { clip=val; } function setZoom(val) { zoom=val; } function geoMap(val) { gmap=val; } function swap(imgNumber) { if(clip==true &amp; zoom==false &amp; gmap==false) document.getElementById("default").src=imgNumber+"clip.jpg"; else if(clip==false &amp; zoom==true &amp; gmap==false) document.getElementById("default").src=imgNumber+"zoom.jpg"; else if(clip==false &amp; zoom==true &amp; gmap==true) document.getElementById("default").src=imgNumber+"zoomp.jpg"; else if(clip==true &amp; zoom==true &amp; gmap==true) document.getElementById("default").src=imgNumber+"clipzoomp.jpg"; else if(clip==true &amp; zoom==false &amp; gmap==true) document.getElementById("default").src=imgNumber+"clipp.jpg"; else if(clip==true &amp; zoom==true &amp; gmap==false) document.getElementById("default").src=imgNumber+"clipzoom.jpg"; else if(clip==false &amp; zoom==false &amp; gmap==true) document.getElementById("default").src=imgNumber+"p.jpg"; else document.getElementById("default").src=imgNumber+".jpg"; } </code></pre> <p>My Buttons: </p> <pre><code>&lt;input type ="button" id="button3" value="Apply Mask" onclick="setClip(true)"&gt; &lt;input type ="button" id="button3" value="No Mask" onclick="setClip(false)"&gt; &lt;input type="button" id="button3" value="Maintain Zoom In" onClick="setZoom(true)"&gt; &lt;input type="button" id="button3"value="Maintain Full View" onClick="setZoom(false)"&gt; &lt;input type="button" id="button3" value="GeoMap On" onClick="geoMap(true)"&gt; &lt;input type="button" id="button3" value="GeoMap Off" onClick="geoMap(false)"&gt; </code></pre> <p>The table I would like my selections to be displayed in, basically I want the values of the selected buttons to but put in the table after they have been selected</p> <pre><code>&lt;table class="status" height="50" width="800"&gt; &lt;tr&gt; &lt;td width="200" align="center"&gt;Step 1 Selection&lt;/td&gt; &lt;td width="200" align="center"&gt;Step 2 Selection&lt;/td&gt; &lt;td width="200" align="center"&gt;Step 3 Selection&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload