Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4030122
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:25:54+00:00 2026-05-20T11:25:54+00:00

I am using the jQuery cookie plugin (also tried with EZCookie), I am stuck

  • 0

I am using the jQuery cookie plugin (also tried with EZCookie), I am stuck with this error in firefox:

'$.cookie is not a function'
 at line:
if(!( $.cookie('name') == null) ) { 

I get a different javascript error in IE 6

"Object doesn't support this property or method"

Strange thing is when I commented $(document).ready(function() { ,

I don’t get any error, but then I also don’t see the cookie (even after setting the cookie from another application).

Anybody has a clue whats going on here….

Here is the code am using:

<script type="text/javascript">
var var2= "";
$(document).ready(function() {
        if($.cookie('name').length > 0) { 
            alert("cookie present"+$.cookie('name'));
            <% 
                String[] var1= (String[]) componentRequest.getComponentSession().getValue("var"); 
                if(!(null == offices)){
                for(int i = 0; i < var1.length; i++){%>

                var2+=<%=var1[i]%>+",";     

                <%}
                }%> 

            $('#tempCookieVal').val(var2+$.cookie('name')); 
            $('#cookieForm').submit();  
        }else{
            alert("no cookie");
            $('#tempCookieVal').val("NoCookie");
            $('#cookieForm').submit();    
        }
        alert("cookie check done");

});
    </script>
<form id="cookieForm" >
<input name="tempCookie" type="hidden" id="tempCookieVal" />
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:25:55+00:00Added an answer on May 20, 2026 at 11:25 am

    Check to make sure you don’t include jquery.js twice. Including it the second time will destroy whatever addons you have added.

    Same goes for including any javascript that overwrites $

    Example:

    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="/js/jquery.js"></script>
    

    This will act as if you’ve never included cookie

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the code sample below, how could I utilize the jquery cookie plugin so
I'm using the jQuery Cookie Plugin on my homepage but it doesn't work in
i'm using the jquery cookie plugin. Everything works fine except the fact that I
I generate the jQuery cookie using this code: $.cookie('queueView', 'value', { path: '/' });
I'm using the Jquery Scroll Follow plugin to allow a box to follow along
I am trying to find a way using jquery without cookies to display a
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, how do you check if there is an option selected in a
Using jquery how do I focus the first element (edit field, text area, dropdown

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.