Hi,
- I have 2 panes, each
having approximately 45-50 slides, all the slide images are 110x82 pixels
in size, enclosed in their respective div's.
- These divs are further
enclosed in a parent div, which is defined as a Sortable on page load.
- There is a destination
div on the RHS also.
Sortable.create("div_leftDiv", {ghosting:true, revert:
true, dropOnEmpty:true, tag:'div',
containment:["div_leftDiv","div_rightDiv"],
constraint:false, overlap:'vertical'});
Sortable.create("div_rightDiv", {ghosting:true,
revert: true, dropOnEmpty:true, tag:'div',
containment:["div_leftDiv","div_rightDiv"],
constraint:false, overlap:'vertical'});

There are a few issues I'm facing,
- The performance of the
page is one major issue. After I select the div and move it from the
source to destination, there is lag of approximately a second and a half
for the div to attach to the mouse pointer. The effect (transparency) does
not immediately apply on the slide, only when I stop the mouse movement,
it applies.
- After dropping the
slide, I hit an AJAX.Updater and refresh the source and destination div,
and re-register the Sortables, (by the way these pages are called for the
first time also using AJAX.Updater) and when I start dragging I get an
'Unspecified Error' on line 1589 of prototype.js, and error persist, till
I hit escape or refresh the page again.
1584.
cumulativeOffset: function(element) {
1585.
var valueT = 0, valueL = 0;
1586.
do {
1587.
valueT +=
element.offsetTop || 0;
1588.
valueL +=
element.offsetLeft || 0;
1589.
element =
element.offsetParent; //-----------> This line throws the
error.
1590.
} while (element);
1591.
return [valueL, valueT];
1592.
},
Can anyone help me with this issue? I took the latest version
of dragdrop.js from SVN, cos I read some articles about it, but in vain.
Another point, when I take the source of the same page and am
deploying it on a plain HTML, it works like a charm, is there any reason the
responseText appended as innerHTML interfere with the dnd code?
Regards
Varun Mehta
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
imagination is more important than knowledge – albert einstein
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Visit Varun
at