P
P
Pavel Mikhalovsky2017-01-23 00:35:47
JavaScript
Pavel Mikhalovsky, 2017-01-23 00:35:47

Why does the console give me $.cookie() is not function?

Plugin connected, order of connections (tried to change the name of the plugin, did not help)

<script src="js/vendor/jquery-3.1.1.js" type="text/javascript"></script>
    <script src="js/vendor/jqueryCookie.js" type="text/javascript"></script>
    <script src="js/vendor/bootstrap.js" type="text/javascript"></script>
    <script src="js/makeFirstOrder.js" type="text/javascript"></script>

Code snippet with function
$.post("/functions/makeFirstOrder.php",
        {name:Name,surname:Surname,
        patron:Patron,email:Email,
        login:login,password:Password, OrderName:orderName,
        OrderObject:orderObject,OrderComment:orderComment},
        function(data,status)
        {
            alert(data+" "+status);
            $.cookie("type","customer");
            $.cookie("id",data);
                var url = "http://noproblems.com/customerDashBoard";
                $(location).attr('href',url);
        });

Mistakeb53707e398a245ed8139fa16dbc85c9e.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Archakov Dennis, 2017-01-23
@archakov06

Maybe it's not the right library.

E
Evgeny Trofimov, 2017-01-23
@deadrime

$.cookies.set("type","customer")?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question