Anybody know how to create an on_click() event for tables and cells in an html page?
Printable View
Anybody know how to create an on_click() event for tables and cells in an html page?
Yeah,
You Need to make the Cell / Text / whatever an Object.
This can be Done By the Following If My memory serves
<object name=cellname><td>text goes here</td></object>
This will then Let you call the cellname on click event
If this does not work, let me know. I will try to find the exact Syntax
-=D=-
I'll give it a try tonight and let you know. It is for a project that I am working on at home.
did this work? I can't get it to and I am curious about this myself.
My Appologies, I had the wrong keyword.. :-)
Example For a Table...
<td> <div ID=Col1> Text Goes here </div> </td>
Now you can use all of the object Events (mouse_over, Click...)
.
.
.
Sub Col1_onclick()
.
.
.
end sub
.
.
.
The Key is to give that "area" that you are interested in a name (ID) that VBscript can reference. The Example that I show above would be a way to sort based on a Column name and is using DHTML.
Hope that Clears Everything up.
-=D=-