Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2003
    Location
    Stockholm, Sweden
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamicly autonaming tables in a loop?? SOLVED

    Hi,

    I have a onMouseOver script that "highlights" a whole column when the mousepointer is over the top row columns. My problem is that when I have
    more than one table looped out from the database the script "highlights" all
    the tables column "X", I just want it to "highlight" the column in the table i am
    onMouseOver in. My guess isthat I somehow needs to name all tables? If so, how do I do it?

    I hope I explained it so you understand

    /Speedy
    Last edited by Speedy; 03-19-2006 at 02:27 AM. Reason: problem solved

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why not post your solution?

  • #3
    Regular Coder
    Join Date
    May 2003
    Location
    Stockholm, Sweden
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok sorry for not giving away the answer when I solved it but here it comes:

    To dynamicly name a table i wrote the table tag like this:
    Code:
    <table id="table_<%=objrs("ID")%>" ...
    and in the db Ihavea field named ID which is set to counter.

    And when I tested this I had 2 tables in my DB and they got named
    table_1 & table_13 this because in my first table I had 12 rows.

    Hope that explains it for you
    /Speedy


  •  

    Posting Permissions

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