• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

jquery.cookie.js not loaded in my CEP Panel

Engaged ,
Jul 23, 2019 Jul 23, 2019

Copy link to clipboard

Copied

Hi,

I ma trying to store my panel setting using cookies and i try to load jquery.cookie.js.

for some reason all the other files are loaded but not jquery.cookie.js and i get an error that $.cookie is not a function.

why is it not loaded??

Views

708

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 23, 2019 Jul 23, 2019

Copy link to clipboard

Copied

Have you checked your console for errors? Also, does jquery.cookie work with jquery 3.2.1?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 23, 2019 Jul 23, 2019

Copy link to clipboard

Copied

Hi,

There were only 2 errors regarding fonts which were not loaded.

However when I test my cookie setting i get a few more errors:

I did not think it need a certain jquery version. I tried with jquery 1.4.2 and i still can't get it to work.

this is what i use to set my cookies

function setSessionCookies() {

var cookieList = ["etMockupScale", "folderName"];

for (i = 0; i < cookieList.length; i++) {

var myCookie = $("#" + cookieList).val();

alert("cookie name: " + cookieList + "\nvalue: " + myCookie);

$.cookie(cookieList, myCookie, { path: '/', expires: 365 });

}

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 24, 2019 Jul 24, 2019

Copy link to clipboard

Copied

LATEST

I decided to use this instead:

JavaScript Cookies

Which was answered here:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines