|
-
Jul 27th, 2000, 10:39 AM
#1
Thread Starter
Junior Member
Anybody know how to create an on_click() event for tables and cells in an html page?
-
Jul 27th, 2000, 12:05 PM
#2
Member
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=-
-
Jul 27th, 2000, 12:22 PM
#3
Thread Starter
Junior Member
Thanks....
I'll give it a try tonight and let you know. It is for a project that I am working on at home.
-
Jul 28th, 2000, 09:53 AM
#4
Member
did this work? I can't get it to and I am curious about this myself.
-
Jul 31st, 2000, 12:24 PM
#5
Member
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=-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|