Anyone know how I can create a custom event and then attach it to a table cell (TD)?
I'm pretty sure I have to use the public:event code for this, but I'm kind of stumped.
Here's the code I have so far:
This displays a simple table, and clicking on cell #2 displays a message. I want to be able to display the message by reacting to 'onmyevent' instead of 'onclick'. Any ideas?
Don't worry about how the event will get fired; I'm actually embedding the browser control in a VB form and firing the event from the form itself.
Thx in advance,
.DaviD.
I'm pretty sure I have to use the public:event code for this, but I'm kind of stumped.
Here's the code I have so far:
Code:
<html>
<head>
<public:event id=myEvent name=onmyevent />
</head>
<body>
<table width="215" border="1" cellspacing="7" cellpadding="0">
<tr height="48">
<td>
Maintenance Menu
</td>
</tr>
<tr height="26.5">
<td class="TDRegularImage" onclick=alert("hello1")>
<b>P.O. Table </b>
</td>
</tr>
</table>
</body>
</html>
This displays a simple table, and clicking on cell #2 displays a message. I want to be able to display the message by reacting to 'onmyevent' instead of 'onclick'. Any ideas?
Don't worry about how the event will get fired; I'm actually embedding the browser control in a VB form and firing the event from the form itself.
Thx in advance,
.DaviD.