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

browser cookie. and other options for achieve the same effect

How would I create a cookie that would store the randomly added body class for one browser session or for one day. My intention would be to randomly give every user a body background image and then store that image so that it won't change every…
Pullapooh
  • 161
  • 1
  • 4
  • 14
0
votes
2 answers

jquery.cookies not working in IE8

I am using this plugin to establish a cookie Everything works well but in IE7 & IE8 Here is my JS code: jQuery(document).ready(function() { jQuery(function() { if (jQuery.cookie('shownDialog') != 'true') { window.onload =…
Xtian
  • 3,535
  • 11
  • 55
  • 91
0
votes
1 answer

Set a browser cookie for element

How would I create a cookie that would store the randomly added body class for one browser session or for one day. My intention would be to randomly give every user a body background image and then store that image so that it won't change every…
Pullapooh
  • 161
  • 1
  • 4
  • 14
0
votes
2 answers

jQuery code works in Firefox but fails in IE

I have a problem that I can't seem to identify, with a code that works perfectly well in Firefox and Chrome but fails in IE. I have a sequence of the following elements:
Amc_rtty
  • 3,662
  • 11
  • 48
  • 73
0
votes
2 answers

jquery cookie setup

I am a newbie at jquery. I've been researching how to set cookies for a jquery function using the cookie plugin. I have this simple hide and show function for a div but want the class states to persist after links to other pages and refreshing. The…
-1
votes
1 answer

Jquery HtmlEncode data to cookie

I am using the jQuery cookieplugin, and want to save the values from a CKEditor into a cookie, to be able to make a draftfunction, a bit similar to the one on StackOverflow. The CKEditors content can contain html, so is there a way to htmlencode the…
Dofs
  • 17,737
  • 28
  • 75
  • 123
-1
votes
1 answer

div hidden by cookie reopens in IE only

javascript is not my strong point so any assistance or help in the right direction would be much appreciated! Basically I have a div which is hidden on my page which gets revealed to a user only if they are a new visitor according to the cookie set…
ZADorkMan
  • 301
  • 4
  • 19
-1
votes
1 answer

With jQuery Cookies: UI hints/notes - hide them after the user continued

The starting point: I have a tricky web app interface (shouldn't be so, but that's another topic). To be understood by the user, i have built in hints. For Example: An arrow shows direction to swipe over the screen to show menu. The problem: Every…
user3371597
  • 77
  • 1
  • 4
-1
votes
1 answer

Using Intro.js and jquery.cookie to show intro only on first view of each url

I am using intro.js functionality across 3 different urls. I have limited it to show to users only the first time they load a page with: unless $.cookie("firstview")? introJs().start() $.cookie "firstview", "firstSet", expires: 365 But the one…
-2
votes
1 answer

how to parse signed cookie in client through javascript or jquery

i set secret key by Express: res.cookie('name','value', {signed:true}); and want to parse the signed cookie in client javascript, such as document.cookie or $.cookie(), but i can't find out where there is any API for that. do anyone know about it?
Sunny Sun
  • 65
  • 5
  • 13
-2
votes
1 answer

User to only see prize once - cookie JS?

I want to cookie a user so that they only see the promotion prize once. If they have accessed the page already a pop-up message will appear. I am not sure where to start here - is this even possible using JS if so how any recommendations or code…
-3
votes
1 answer

Use cookie for Javascript function

I have a Javascript function : $('.myclass').click(function() { $('.myclass2').each(function(e) { $(this).removeClass('myclass3').addClass('myclass4'); }); }); I would wish that the changes remain all the time for the user with jquery…
Fluidouix
  • 57
  • 1
  • 1
  • 8
1 2 3
21
22