Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you should write:</p> <pre><code>hhgselect = dmenu(numrows); </code></pre> <p>and then</p> <pre><code>doarticle(hhgselect); </code></pre> <p>EDIT: or if you want to select at onclick why don't you just call doarticle inside the onclick event?</p> <p>EDIT 2:</p> <p>try:</p> <pre><code> ... hhgstring + "&lt;td&gt;&lt;span id=\"menutitle\" onclick=\"doarticle('" +recnum+ "');\"&gt;"... </code></pre> <p>EDIT 3:</p> <pre><code>&lt;script type="text/javascript"&gt; function domenu (lastrecord) { hhgstring = "&lt;br/&gt;&lt;br/&gt;&lt;table border=\"0\" cellpadding=\"0\"&gt;"; for (counter=1; counter&lt;lastrecord; counter++) { recnum = lastrecord - counter; // hhgstring = hhgstring + "&lt;tr&gt;&lt;td&gt;&lt;img class=\"imgpadded\" src=\"" + imgpath + hhgdata[recnum][4] + "\" align=\"left\"&gt;&lt;/td&gt;"; hhgstring = hhgstring + "&lt;tr&gt;&lt;td&gt;" + hhgdata[recnum][4] + "&lt;/td&gt;"; hhgstring = hhgstring + "&lt;td&gt;&lt;span class=\"menutitle\" onclick=\"doarticle('" +recnum+ "');\"&gt;" + tab + hhgdata[recnum][1] + "&lt;br/&gt;&lt;/span&gt;"; hhgstring = hhgstring + "&lt;span class=\"menusummary\"&gt;" + tab + hhgdata[recnum][3] + "&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;"; } hhgstring = hhgstring + "&lt;/table&gt;"; document.write(hhgstring); return(hhgselect); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;script type="text/javascript"&gt; imgpath = "images/"+imgmod+"/"; tab = "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"; hhgselect = 0; domenu (numrows); &lt;/script&gt; </code></pre>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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