Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checkbox values in session

 
Manish Sahni
Ranch Hand
Posts: 41
Java Netscape Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My question is can i set the value of check boxes values in a session after clicking it
i.e. i want to add the checked value of check boxes in onClick event of check boxes .

What are the ways of achieving this??
Any help would be appreciable?


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll either need to submit a form to the server, or use Ajax to do so.
 
Manish Sahni
Ranch Hand
Posts: 41
Java Netscape Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You'll either need to submit a form to the server, or use Ajax to do so.



sir, i am using pagination in my application and i have persisted the check box state using cookies
and java script.However when i check some check boxes and move to another page and their again i select some check boxes, then on submitting of the page the cookies are really hard to parse as they are encoded via JSON in cookies javascript and i have no idea , how to decode it and retrieve my cookies values.

So i thought that it would be a good idea to store the check box state in a session as i move along the page and retrieve all the values on submitting.

Also i am very novice to Ajax and can you tell me any idea or share a link or can you please tell me if i can do something else to my application?

My snippet of cookie javascript is as follows:-


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic