I have a list that I want sortable, however in IE7, as soon as I start
to drag the list item I get this error: 'tagName' is null or not an
object.
The item I'm attempting to drag is pulled out of the list but placed
right where it started except the next item down has moved up and now
overlaps the dragged item. In other words if I have a list 1, 2, 3 and
I drag 1, it gets pulled out of the list, 2 moves up and overlaps 1.
If I scroll over 2, then I can select 1 (but not drag it, same error
occurs).
My HTML looks like this:
<div class="sortable catalog_admin_page_list ui-widget-content ui-
corner-all ui-sortable">
<div pid="1926"
class="catalog_admin_layout_list_item">001-016HR08.indd_Page_02.jpg</
div>
<div pid="1927"
class="catalog_admin_layout_list_item">001-016HR08.indd_Page_03.jpg</
div>
<div pid="1925"
class="catalog_admin_layout_list_item">001-016HR08.indd_Page_01.jpg</
div>
<div pid="1928"
class="catalog_admin_layout_list_item">001-016HR08.indd_Page_04.jpg</
div>
<div pid="1929"
class="catalog_admin_layout_list_item">001-016HR08.indd_Page_05.jpg</
div></div>
And my JS to make this sortable looks like this:
$(".sortable").sortable().bind('sortupdate', function(event, ui) {
var pids = Array($('#catalog_admin_catid').val());
var kids = $(this).children().each(function() {
pids[pids.length] = $(this).attr('pid');
});
pids = pids.join(',');
$.ajax({
type: "POST",
url: "URLREMOVED",
data: "pids=" + pids,
dataType: 'json',
success: function(cat){}
});
});
If I remove the bind the behavior is the same, so I've already ruled
that out as the cause.
Any ideas? Has this been addressed somewhere that I didn't find in my
initial searches through the forum?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---