Questions tagged [jquery-cookie]

A simple, lightweight jQuery plugin for reading, writing and deleting cookies.

jQuery Cookie is a simple, lightweight jQuery plugin for reading, writing and deleting cookies.

327 questions
2
votes
2 answers

Are cookies safe?

I want to create a webpage which redirects a user if some cookies are previously set by my webpage. Like this: (I am using a jquery cookie plugin) // get cookies var email = $.cookie("email_addr"); var postcode = $.cookie("post_code"); if(email !=…
user3542327
2
votes
1 answer

jQuery Cookies not working as expected in IE

I have Used jQuery Cookies to set a cookie variable as below for(ck=1;i<= $.cookie('ck'); ck++){ $.cookie('Answer'+answer, answer); $.cookie('questions'+ck, $('#quid').text()); $.cookie('Answer'+ck, $('#'+answer).val()); …
user
  • 115
  • 1
  • 12
2
votes
2 answers

How to store window references in a cookie?

I'm opening a window as winRef = window.open(......); Then I'm storing the above winRef in cookie so that I can get the reference to child window even if the parent refreshes. That didn't work because when I tried to save winRef in cookie it just…
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
2
votes
1 answer

Retrieving references to child window if the parent refreshes

I have a page (parent.html) which has many links which on clicking opens a window as: winRef = window.open(url, '_blank', 'width=800,height=600,resizable,scrollbars'); To give a warning when the child window is closed I use the below in…
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
2
votes
0 answers

How can I access html5 geolocation data in Rails so that I can use it in Geocoder Gem?

I'm using a jquery cookie to store html5 geolocation longitude and latitude data as I want the user IP address to be accurate. How would I then access this cookie to use with Geocoder?
2
votes
3 answers

jQuery Cookie Age Verification?

I'm working on a beer site and trying to get it to go to an age verification page when the site loads using jQuery Cookie. The age page has a simple Yes to accept the cookie and No to take you away from the site and my code…
Thomas James
  • 687
  • 2
  • 6
  • 21
2
votes
1 answer

Animate hidden div horizontally when it uses jquery cookie

I am using a new type of offcanvas technique with bootstrap 3 and jquery cookie. I am using this HTML mockup with following CSS and jquery. CSS body { padding-top: 50px; overflow: hidden; } #wrapper { min-height:…
Ravimallya
  • 6,550
  • 2
  • 41
  • 75
2
votes
1 answer

How to set jQuery Cookie for slideDown menu?

I have a slideDown menu and I want to remember the last state of the menu so that on page load the last state is already selected. I am trying to accomplish this by using jQuery.cookie and this is what i did: $("#menu h3").click(function(){ …
Mustapha Aoussar
  • 5,833
  • 15
  • 62
  • 107
2
votes
1 answer

Slickgrid with CheckboxSelectColumn plugin how to maintain checked state with cookies

I would like to implement saving and restoring checked state (check and uncheck) rows in my slickgrid. The row checked state should be persisted to cookie. after pagination or page reloading checkboxes should be restored. Where to start…
marcinn
  • 1,879
  • 2
  • 22
  • 46
2
votes
1 answer

'JSON' and 'jQuery' still undefined in Internet Explorer 7 and 8

I got these three popular scripts included between my tags