Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Posts: 65542
110
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:-


 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!