• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How To Display Check Boxes in a Table with Select All

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can create tables and I can also create check boxes. Now, I have to do a combination of check boxes and tables:

I am reading membership data from a database table. I am going to display the information of each member in a table.

The table has five columns. Four of those five columns are name, title, e-mail address, and telephone number.

I also have to display a check box for each of the members. Therefore, there is a check box for each row. And the check box is the fifth column.

In addition, I must have a "Select All" check box on top of the page.

Users either select all or make multiple selections from the list.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this whole thing one question: How to create a check all box?


the check all checkbox:

That is the basic idea.

Eric
[ October 04, 2004: Message edited by: Eric Pascarello ]
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your prompt help. What should I do if the user disables the JavaScript?
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is nothing you can do to have a check all functionality other then to post the entire page back to the server and deal with it in that manner when JavaScript is disabled.

Eric
[ October 04, 2004: Message edited by: Eric Pascarello ]
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Huh? I have no idea about what this sentence means: "have a check all functionality other then to post the entire page back to the server and deal with it in that manner".
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I was trying to say is you would have to post a form back to the server and have the server side code do all of the checking. It is a mess.

Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic