How to Limit the number of td's for dynamically creating table?

1 replies
  • WEB DESIGN
  • |
Hello,
I am storing avatar images in a table dynamically.
I want to store only 2 avatars in a row, but there may exists any no of avatars. Also in the view i want only to show 3 rows. The remaining must be hidden. When i click some button i want the other 3 rows to be showed and so on.
Is that really possible?

Thank You
#creating #dynamically #limit #number #table
  • Profile picture of the author Bruce Hearder
    There could be a number of solutions to this problem:

    1. You could use AJAX to dynamically load the next 3 rows after a button press, or

    2. You could simply force a page relad and the script would then go back to your database, get the next 3 rows (or 6 images) and redisplay the page, or

    3. You could hide the rows of the "unwanted" rows using Javascript and then using an OnClick event for a button you could hide some rows and unhide other rows..

    You choose what would be best and how much data you have to handle as well as your programming skill level

    Hope this helps

    Bruce
    {{ DiscussionBoard.errors[1775317].message }}

Trending Topics