Hi.  I was hoping someone could shed some light on a problem I'm
seeing w/UI 1.7.2 that isn't present w/UI 1.5.3.

I've got some mildly complicated code (or I'd post the whole thing
here) that relies on draggable and droppable.  It works fine in
1.2.6/1.5.3, but throws an error under 1.3.2/1.7.2 inside of the
following code (which is part of jQuery UI):

$.ui.plugin.add("draggable", "cursor", {
  start: function(event, ui) {
    var t = $('body'), o = $(this).data('draggable').options;
    if (t.css("cursor")) o._cursor = t.css("cursor");
      t.css("cursor", o.cursor);
    },
  stop: function(event, ui) {
    var o = $(this).data('draggable').options;
<=====  $(this).data("draggable") is undefined
    if (o._cursor) $('body').css("cursor", o._cursor);
  }
});

The code in 1.7.2 apparently expects that the draggable element has
some associated data but it seems not to be there.  Again, this isn't
a problem in 1.5.3.

The logic in question is using draggable and droppable to implement
dragging grid (table) columns around to reorder the columns.  When a
column is dropped, it blows away the elements in the table's thead and
tbody and
regenerates the HTML for them using the new column sequence.

Stepping through the code, I can see that my logic that dumps and re-
renders the HTML occurs before the above problem line is hit.  Which I
guess might be the problem.  But then why isn't it a problem in 1.5.3?

I'm kind of stumbling around a bit on this so any thoughts as to what
might be the cause/solution for this would be very much appreciated.

Thanks,
Andy


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to