Fikret Anıl Haksever
Fikret Anıl Haksever

Reputation: 95

jQuery UI has no method 'sortable'

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

My page's link

Upvotes: 3

Views: 972

Answers (2)

Fikret Anıl Haksever
Fikret Anıl Haksever

Reputation: 95

I rearranged all my js includes and put them to the top of the index.php. Now it's working...

Upvotes: 0

machineghost
machineghost

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

Related Questions