SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2000
    Location
    Vancouver, BC, Canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am developing a site in which I have several tables on the left side frame. When a table value is clicked, I would like to invoke another set of tables in the right-side frame. Would that work through the onclick event? I have a SQL server database set up to look up the values. Are there any samples I can look at?

    Please help.

    Thanks.

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure.

    <html><head>
    <script language="Javascript">
    ... //define the subroutine
    </script>
    ...
    <table>
    ...
    <td OnClick="javascript:subroutine();">
    ...
    </table>

    And then just have the function execute whatever you'd like.

    P.S. By tables, you mean HTML tables not SQL tables, right?

    ------------------
    Who the heck is Gen. Failure and why does he want to read my hard drive?
    Soon to come: Aspology.com

  3. #3
    SitePoint Member
    Join Date
    Apr 2000
    Location
    Vancouver, BC, Canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot, will try it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •