N
N
Nikolai Retsinkevich2015-11-06 22:03:59
JavaScript
Nikolai Retsinkevich, 2015-11-06 22:03:59

How to integrate Sisyphus plugin into ASP?

I decided to add auto-remembering of the data entered into the form to my site. I downloaded the Sisyphus plugin, uploaded it to Scripts. Posted on the page:

<script src="~/Scripts/sisyphus.js" type="text/javascript"></script>


Well, before the content, I call this plugin:
<script type="text/javascript">
    $(window).load(function() {
        $('form').sisyphus();
    });
</script>


But it does not work, and the console swears:
Uncaught TypeError: $(...).sisyphus is not a function

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Dudnik, 2015-11-12
@schart

Look at the script loading order.
First there should be Jquery loading, then your script, and only then initialization.
There is a suspicion, in your case the sisyphus plugin is loaded before jquery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question