Hi,
Starting working on displaying a table in a web area.
Have my HTML working correctly. i.e. my 4D data is displaying correctly.
My goal is to run a 4D method when clicking on a table row.
My table row is populated with the following HTML (rest of document left out
for brevity sake);
<tr onclick=$4d.WA_CLICK(Row 1)>
<td> Miscellaneous 4D data </td>
</tr>
<tr onclick=$4d.WA_CLICK(Row 2)>
<td> Next 4D data </td>
</tr>
WA_CLICK has the following 4D code;
C_TEXT($1;$Text)
TRACE
$Text:=$1
ALERT("Web Area Clicked"+$Text)
I load the html and the all is fine.
I click on the line and the 4D method is called and stops at the TRACE.
BUT, $1 is blank. Anyone know why $1 does not pick up the “Row 1” or “Row 2”?
Thanks. Probably pretty basic but I am very novice with HTML.
Thanks
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************