• 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

checkbox values in session

 
Ranch Hand
Posts: 41
Netscape Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?


 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netscape Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:-


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic