Results 1 to 5 of 5

Thread: On_click() event for tables or cells in HTML?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Posts
    28

    Question

    Anybody know how to create an on_click() event for tables and cells in an html page?

  2. #2

    Thumbs up

    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=-

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Posts
    28

    Thanks....

    I'll give it a try tonight and let you know. It is for a project that I am working on at home.

  4. #4
    Member
    Join Date
    Nov 1999
    Posts
    48
    did this work? I can't get it to and I am curious about this myself.

  5. #5
    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
  •  



Click Here to Expand Forum to Full Width