Reputation: 2760
I am getting a weird error when i am using jqueryui sortable. It says,
$(this).sortable(); is not a function.
How to solve this?
edit heres my header code:
<script src="jquery.min.js"></script>
<script src="jquery.ui.core.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.mouse.js"></script>
<script src="jquery.ui.sortable.js"></script>
and heres the code i am using to refresh my edit my xml file.
$("#sortable").sortable(
{
update : function(event, ui) {
//var change = $(this).sortable('toArray').toString();
// $('#show').html(change);
var order = $(this).sortable('toArray');
//var order = $(this).val;
$("#show").load("update_engine_xml.jsp?order="+ order);
//$("#showid").html(ui.item.context.id+" "+event.target.id);
}
});
EDIT: 2 any suggestions why i am getting this error?!
Upvotes: 4
Views: 11060
Reputation: 1216
I had this same error. I figured out that my jquery-ui-1.8.*.custom.min.js did not contain all the components this requires. I downloaded it again with all the components and it started working. You can download more components at http://jqueryui.com/download
Upvotes: 0
Reputation: 20720
I had a similar error and what I can see is that if the path or filename is wrong, the JavaScript is not loaded and you got pretty much no feedback on your end... only the loading returned a 404. You can see that in your Apache logs in general.
Upvotes: 0