Reputation: 95
My playlist plug-in with jQuery UI works fine alone, but when I include it on the index page, it gives me this error:
Uncaught TypeError: Object [object Object] has no method 'sortable' /868
Here is my index page at Pastebin
Upvotes: 3
Views: 972
Reputation: 95
I rearranged all my js includes and put them to the top of the index.php. Now it's working...
Upvotes: 0
Reputation: 35740
Your problem is likely this:
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
That's a relative path, so while js/jquery-ui.min.js might point to the right place in the first location, if there isn't a similar file there in the second location you're going to get the problem you see (ie. no jQuery UI).
Upvotes: 2