I’ve also done the same, but over the period of time it slows down the machine. Also is there any link I can download the older archives of the library, cos a friend of mine tried using the older version and it performed better!!

 

Regards
Varun Mehta

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
imagination is more important than knowledge – albert einstein
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

 

Visit Varun at

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Siegfried Puchbauer
Sent: Saturday, January 28, 2006 9:43 PM
To: [email protected]
Subject: Re: [Rails-spinoffs] Unspecified error in prototype.js

 

I had a similar problem with object.offsetParent when it was undefined or null in internetexplorer... i was not able to find the root of the problem ... i put it in to a try {}catch block .... so the error is not shown up in ie

hth

2006/1/28, Jerod Venema <[EMAIL PROTECTED]>:

Holy crap...can't help much with your problem, but thats the nicest-format email I've ever seen... :)

-Jerod

On 1/28/06, Varun Mehta < [EMAIL PROTECTED]> wrote:

Hi,

 

  1. 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.
  2. These divs are further enclosed in a parent div, which is defined as a Sortable on page load.
  3. 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,

  1. 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.
  2. 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

 

 


_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




--
Mit freundlichen Grüßen

Siegfried Puchbauer

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to