Hello

I am using Jquery Cookie for that it given me Error "$.cookie is not a function"
Used Plugin And My code as bellow.

$(window).load(function(){

if($.cookie('chat_user_name') !== 'undefined' && ($.cookie('chat_user_id') !== 'undefined'))
    {                                           
        requestChat($.cookie('chat_user_name'),$.cookie('chat_user_id'));   

    } 

});

In IF condition given error.How can i solved

Suggestion Me ,

Thank you

You're probably trying to use the jQuery Cookie plugin before jQuery has been loaded.

From the README:

Include script after the jQuery library (unless you are packaging scripts somehow else)

If you're loading jQuery through <script> tags, make sure your jQuery <script> tag comes before the jQuery Cookie <script> tag.

@Purkinje : i have already do that which you have mansion.In my Question i have post Plugin Link.

Thank you for response.

Are you seeing any other errors in Chrome's Developer Console?

@Purkinje: no any other errors in Chrome's Console.But this error its stop my functionality of chat application.i think i should change track and complete thought js cookie.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.