*
The moose likes HTML, CSS and JavaScript and the fly likes Need Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need Script" Watch "Need Script" New topic
Author

Need Script

Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi All,

Here is my scenario:

I have one web page with pagenation(of course its JSP). the page has check boxes for each record dispalyed in the page. I want to select the required check boxes and i will navigate the page(i.e. for the next records). and goes on i will check all required check boxes(i.e. records.) then how can i store the checked boxes(records ids) information in a javascript array variable(the final array shoud contain all checked boxes values). Its just like Yahoo address book where we can select multiple entries to select and send mail.(the pagenation is there)

thanks in advance

Prasad
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

You'll either need to propogate the values from page to page using hidden variables. or accumulate them in the session.

Do you not think that you could come up with a better title for this topic?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Script
 
Similar Threads
To select all checkbox across all pages in an application
Validation on multiple checkboxes using Struts validator
Maintaining the state of checkbox in pagination
code in jsp for check all button
Reg :Check all