Hi,

i created some sortable lists. Now I'm getting the error "element is
null" in line 599 of the original dragdrop.js when a item from one
list ist dropped into another. When I release the mouse button nothing
happens. When I click it again the item droppes where it should drop.

The code around line 599 would be:

var Sortable = {
  SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,

  sortables: { },

  _findRootElement: function(element) {
    while (element.tagName.toUpperCase() != "BODY") {
      if(element.id && Sortable.sortables[element.id]) return element;
      element = element.parentNode;
    }
  },

  options: function(element) {
    element = Sortable._findRootElement($(element));
    if(!element) return;
    return Sortable.sortables[element.id];
  },

...........

Where as line 599 would be while (element.tagName.toUpperCase() !=
"BODY") {

Does anybody have an idea why this could be?
Could it be, because the html tags for the sortalble divs are
generated dynamically by  javascript?

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to