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
0
votes
1 answer

Set jquery tabs cookie with button instead of tab

I am working on an page using jQuery tabs. The example shows how to set a cookie when a tab is selected. However, what I would like to do instead is to use a button to ask the user to make a conscious decision to select a particular tab as his/her…
lbriquet
  • 541
  • 3
  • 12
  • 27
0
votes
0 answers

javascript cookie is not returning the value

I have a cookie that is being set by this function (page calendar.html): function bookit(id){ document.cookie='eventid' + "=" + id; document.location.href ="/sys/account.php"; } After that the users is redirected to account.php so he can sign in…
cppit
  • 4,478
  • 11
  • 43
  • 68
0
votes
1 answer

How can I get an array of the keys of all current javascript cookies?

I have links for various products. I am using php to add the product ID from the database as the id value for each link. I am using the jquery cookie…
zeckdude
  • 15,877
  • 43
  • 139
  • 187
0
votes
2 answers

Jquery Cookie Code not working

0
votes
1 answer

Jquery Cookie plugin and redirect

I have the following code which works but dosent perform as expected: $(".switch_org").click(function(e){ var id = $(this).attr('id'); var orgID = id.split("_"); e.preventDefault(); $.cookie('current_organisation',…
Elliot
  • 257
  • 7
  • 15
0
votes
1 answer

Remember jQuery hide or show after page refresh and setting up the Jquery cookie plugin

$(document).ready(function(){ var ScreenSizeHis = $.cookie(ScreenSizeHis); $("#arrow").bind('click', function(){ $('#naviclosed').fadeIn("fast"); $(window).unbind('resize'); }); $('#naviclosed').bind('click', function ()…
Yoosuf
  • 463
  • 5
  • 10
0
votes
1 answer

Isotope and jquery.cookie

I've got an jquery isoptope that I filter with checkboxes. The value of the checkboxes are retrieved with jquery cookie and I want to set the initial filter using the values of the checkboxes. I've made a jsfiddle: http://jsfiddle.net/qdzcP/10/ I'm…
adnan
  • 1,385
  • 2
  • 17
  • 31
0
votes
1 answer

jQuery cookie that redirects to multiple domains

Here's what I'm trying to do: Splash page on subdomain.domain1.com/splashpage.html User clicks a button and is redirected to subdomain.domain1.com/landingpage.html OR subdomain.domain2.com/landingpage.html Cookie set on…
user5710
  • 123
  • 7
0
votes
1 answer

jQuery / Cookie popup issue

I was recently helped with this issue, but cannot get hold of the person who helped me. The code bellow makes a popup show every 24 hours and creates a cookie that expires every day. The issue I'm having is that when the cookie expires, a new one…
0
votes
1 answer

how can we remove cookies on all pages on logout in jquery?

hey i am new to jquery and using mvc3 with jquery. can anybody tell me how can we clear cookies on all pages from our website on clicking logout button using jquery? on login button, my code is: $('.login').click(function(){ var username =…
Parasignals
  • 129
  • 1
  • 3
  • 7
0
votes
1 answer

issue with jquery cookie plugin

I'm using jquery cookie plugin to save data, the data is saved and i can read it but it's goes when i'm close the browser and open it again, i do programming for Samsung smart TV app, and the api support cookie, also as i said i can read the data…
0
votes
1 answer

Cookie not saving in safari when adding to home screen

Hey i'm using the following code to set a cookie and get it : $.cookie('SimMobileUsername', $('#user_id').val()); if($.cookie('SimMobileUsername') != "null" && $.cookie('SimMobileUsername') != null); { …
eric.itzhak
  • 15,752
  • 26
  • 89
  • 142
0
votes
3 answers

How to set a cookie with jQuery in a PHP function

I have a very basic validation script using PHP, and I want to set a cookie with jQuery Cookie plugin if they are validated. Being very new to PHP, I don't know how to code a Javascript function here: if($validated) { //SET jQUERY COOKIE HERE:…
JayDee
  • 1,633
  • 4
  • 21
  • 33
0
votes
1 answer

Can I set the option raw: true when using jquery.cookie

I want to create a cookie with: Name: drm Value: drmStatus=Expected I'm using the code from the answer to this question - Jquery Cookie plugin - multiple values? to create the cookie var obj = { drmStatus: 'Expected' }; $.cookie('drm',…
user1069816
  • 2,763
  • 2
  • 26
  • 43
0
votes
2 answers

Fullcalendar with $.cookie not working

I have been trying to figure this out, and since I can't find any solution, I created a jsfiddle so someone might be able to help me. I have fullcalendar with the jquery cookie plugin integrated, so that I can 'cache' the view last used by the…
1 2 3
21
22