jdalton
2007-May-31 12:29 UTC
Any tips for slow drag and drop in IE (or any other browser for that matter)
Hiya, I have just recently began to use Script.aculo.us. It is awesome!!! 1) I have noticed that when I created a DIV Shortable with let say 10+ children in it that IE drags are very slow, while Firefox is fast. Any Idea on how I can speed this up? 2) Also as a second parter are there any tips on making the slide/ blind effects not warp the divs inner spacing when its sliding/ blinding in IE? 3) Random question: Is Scriptaculous only developed by Thomas Fuchs? If so "WOW", secondly that would explain the almost complete lack of documentation. (the documentation section should be renamed loosly scatter examples, most of which are in "Ruby helpers" or outdated). 4) The FAQ on the Script.aculo.us site leads to a ''This page cannot be displayed'' error. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs
2007-May-31 15:19 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Am 31.05.2007 um 14:29 schrieb jdalton:> 1) I have noticed that when I created a DIV Shortable with let say 10+ > children in it that IE drags are very slow, while Firefox is fast. Any > Idea on how I can speed this up?Have you tried 1.7.1 beta 3? If so, do you have an example of this online somewhere so we can take a look?> 3) Random question: > Is Scriptaculous only developed by Thomas Fuchs?I guess the bulk of the code was developed by me, but there are loads and loads and loads of contributors.> If so "WOW", secondly that would explain the almost complete lack of > documentation. (the documentation section should be renamed loosly > scatter examples, most of which are in "Ruby helpers" or outdated).Thanks. The quality of the documentation in the wiki is very low, I know. Please help updating it (hey, it''s a wiki!), though currently the wiki seems to be down, that''s the reason why the FAQ is not working, too. I''ve no idea when it will be available again (stikipad seems to have a major upgrade going on: http://www.stikipad.com/buzz/2007/05/ scheduled_maintenance_may_30th/). Best, Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
jdalton
2007-May-31 19:15 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Hello Thomas, Thanks for the reply. Yes it is 1.7.1beta3, but unfortunately I am not able to publish an example online. I was just wondering if other users have had similar problems and found ways around it. I do have a very limited example of a blog I am working on getting up (when ever I have free time). It shows the div warping issue in IE 6. http://www.protolific.net/ Keep in mind the blog framework is running in debug mode. This means no script concatenation/gzipping or server-side caching. It''s just the default blog splash for now. Click on the "Portlets" to collapse them. You will see the content jump around in IE6. There is no css change/indicator for a closed Portlet vs an open on yet either. When/while I get this blog up I would love to help contribute toward documentation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ernst
2007-Jun-03 20:50 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
On May 31, 9:15 pm, jdalton <jdalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes it is 1.7.1beta3, but unfortunately I am not able to publish an > example online. > I was just wondering if other users have had similar problems and > found ways around it.I have the same problem. Maybe I have a litte too much load burdened on scriptaculous. My application has two sortable/dropable lists with nearly 150 elements in unordered lists. The elements (li) contain a small table with an in-place-edit field and are reloaded from the server on selection of some other fields. On Firefox it is fast and usable, in IE I have to wait 5 seconds to get the lists on screen. IE seems to be very busy on this, my progress indicator (a animated gif) stops the animation. Even worse I found, that the selection of a draggable element does not work on a slower computer, e.g. my laptop on battery power. When I try to select e element, I can only select the displayed text. This effect is worse in IE7 than IE6. Ernst --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs
2007-Jun-04 09:34 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Do you use handles? If so, try the new handles option in Sortable.create, which takes an array of elements or element ids (of your handles) to speed up initializing. Basically you can now do: Sortable.create(''sortable_elements_handles'',{ handle: ''handle'', handles: [''h_1'',''h_2'',''h_3'',''h_4'',''h_5'',''h_6'',''h_7'',''h_8'',''h_9'',''h_10''], }); See test/functional/sortable_test.html (lower half) for more usage information. Best, Thomas Am 03.06.2007 um 22:50 schrieb ernst:> > > > On May 31, 9:15 pm, jdalton <jdalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Yes it is 1.7.1beta3, but unfortunately I am not able to publish an >> example online. >> I was just wondering if other users have had similar problems and >> found ways around it. > > I have the same problem. Maybe I have a litte too much load burdened > on scriptaculous. > > My application has two sortable/dropable lists with nearly 150 > elements in unordered lists. The elements (li) contain a small table > with an in-place-edit field and are reloaded from the server on > selection of some other fields. > > On Firefox it is fast and usable, in IE I have to wait 5 seconds to > get the lists on screen. IE seems to be very busy on this, my progress > indicator (a animated gif) stops the animation. > > Even worse I found, that the selection of a draggable element does not > work on a slower computer, e.g. my laptop on battery power. When I try > to select e element, I can only select the displayed text. This effect > is worse in IE7 than IE6. > > Ernst > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ernst
2007-Jun-21 09:08 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Hi Thomas, sorry about my long delay. The slow init is one point. But much worse is the effect, that the sortables do not react on a click. When I try to move a element from one list to another, I am not able to pick up a element and drag it. The only reaction ist the selection of text. My sortables contain consists of 2 lists (<ul>) with about 100-150 listelements together. The elements themself are small tables with 2 rows/3 columns. Do you know a upper limit of elements in sortables with drag&drop between different lists? Ernst On Jun 4, 11:34 am, Thomas Fuchs <t.fu...-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote:> Do you use handles? > > If so, try the new handles option in Sortable.create, which takes an > array of elements or element ids (of your handles) to speed up > initializing. > > Basically you can now do: > > Sortable.create(''sortable_elements_handles'',{ > handle: ''handle'', > handles: > [''h_1'',''h_2'',''h_3'',''h_4'',''h_5'',''h_6'',''h_7'',''h_8'',''h_9'',''h_10''], > > }); > > See test/functional/sortable_test.html (lower half) for more usage > information. > > Best, > Thomas > > Am 03.06.2007 um 22:50 schriebernst: > > > > > On May 31, 9:15 pm, jdalton <jdalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> Yes it is 1.7.1beta3, but unfortunately I am not able to publish an > >> example online. > >> I was just wondering if other users have had similar problems and > >> found ways around it. > > > I have the same problem. Maybe I have a litte too much load burdened > > on scriptaculous. > > > My application has two sortable/dropable lists with nearly 150 > > elements in unordered lists. The elements (li) contain a small table > > with an in-place-edit field and are reloaded from the server on > > selection of some other fields. > > > On Firefox it is fast and usable, in IE I have to wait 5 seconds to > > get the lists on screen. IE seems to be very busy on this, my progress > > indicator (a animated gif) stops the animation. > > > Even worse I found, that the selection of a draggable element does not > > work on a slower computer, e.g. my laptop on battery power. When I try > > to select e element, I can only select the displayed text. This effect > > is worse in IE7 than IE6. > > >Ernst--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Jun-21 09:10 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Ernst, do you have a margin between your sortables? I was having the select problem but it actually occurred when i clicked in the margin instead of on the sortable Gareth On 6/21/07, ernst <ehansmair-OBeDvLIYKnqELgA04lAiVw@public.gmane.org> wrote:> > > Hi Thomas, > > sorry about my long delay. > > The slow init is one point. But much worse is the effect, that the > sortables do not react on a click. When I try to move a element from > one list to another, I am not able to pick up a element and drag it. > The only reaction ist the selection of text. > > My sortables contain consists of 2 lists (<ul>) with about 100-150 > listelements together. The elements themself are small tables with 2 > rows/3 columns. > > Do you know a upper limit of elements in sortables with drag&drop > between different lists? > > Ernst > > > On Jun 4, 11:34 am, Thomas Fuchs <t.fu...-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote: > > Do you use handles? > > > > If so, try the new handles option in Sortable.create, which takes an > > array of elements or element ids (of your handles) to speed up > > initializing. > > > > Basically you can now do: > > > > Sortable.create(''sortable_elements_handles'',{ > > handle: ''handle'', > > handles: > > [''h_1'',''h_2'',''h_3'',''h_4'',''h_5'',''h_6'',''h_7'',''h_8'',''h_9'',''h_10''], > > > > }); > > > > See test/functional/sortable_test.html (lower half) for more usage > > information. > > > > Best, > > Thomas > > > > Am 03.06.2007 um 22:50 schriebernst: > > > > > > > > > On May 31, 9:15 pm, jdalton <jdalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > >> Yes it is 1.7.1beta3, but unfortunately I am not able to publish an > > >> example online. > > >> I was just wondering if other users have had similar problems and > > >> found ways around it. > > > > > I have the same problem. Maybe I have a litte too much load burdened > > > on scriptaculous. > > > > > My application has two sortable/dropable lists with nearly 150 > > > elements in unordered lists. The elements (li) contain a small table > > > with an in-place-edit field and are reloaded from the server on > > > selection of some other fields. > > > > > On Firefox it is fast and usable, in IE I have to wait 5 seconds to > > > get the lists on screen. IE seems to be very busy on this, my progress > > > indicator (a animated gif) stops the animation. > > > > > Even worse I found, that the selection of a draggable element does not > > > work on a slower computer, e.g. my laptop on battery power. When I try > > > to select e element, I can only select the displayed text. This effect > > > is worse in IE7 than IE6. > > > > >Ernst > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ernst
2007-Jun-21 13:58 UTC
Re: Any tips for slow drag and drop in IE (or any other browser for that matter)
Gareth, I finally found my error. I have two lists which are filled with an Ajax.Updater() each. The second Ajax.Updater has a onComplete:function() which calls Sortable.create("first list") and Sortable.create("second list"). Since the AjaxUpdater() worked asynchronous, I had situations when the second Ajax.Updater() finished before the first one. This means it''s onComplete function tried to Sortable.create() something, which was not ready. I wanted to do all the work in one onComplete() function, because I have to calculate sums over elements in both sortables. I changed the first Ajax.Updater() to Ajax.Updater( ... asynchronous: false, ...) and it works in IE6 and IE7. Thank you for your support. On Jun 21, 11:10 am, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ernst, do you have a margin between your sortables? > I was having the select problem but it actually occurred when i clicked in > the margin instead of on the sortable > > Gareth > > On 6/21/07, ernst <ehansm...-OBeDvLIYKnqELgA04lAiVw@public.gmane.org> wrote: > > > > > Hi Thomas, > > > sorry about my long delay. > > > The slow init is one point. But much worse is the effect, that the > > sortables do not react on a click. When I try to move a element from > > one list to another, I am not able to pick up a element and drag it. > > The only reaction ist the selection of text. > > > My sortables contain consists of 2 lists (<ul>) with about 100-150 > > listelements together. The elements themself are small tables with 2 > > rows/3 columns. > > > Do you know a upper limit of elements in sortables with drag&drop > > between different lists? > > > Ernst > > > On Jun 4, 11:34 am, Thomas Fuchs <t.fu...-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote: > > > Do you use handles? > > > > If so, try the new handles option in Sortable.create, which takes an > > > array of elements or element ids (of your handles) to speed up > > > initializing. > > > > Basically you can now do: > > > > Sortable.create(''sortable_elements_handles'',{ > > > handle: ''handle'', > > > handles: > > > [''h_1'',''h_2'',''h_3'',''h_4'',''h_5'',''h_6'',''h_7'',''h_8'',''h_9'',''h_10''], > > > > }); > > > > See test/functional/sortable_test.html (lower half) for more usage > > > information. > > > > Best, > > > Thomas > > > > Am 03.06.2007 um 22:50 schriebernst: > > > > > On May 31, 9:15 pm, jdalton <jdalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > >> Yes it is 1.7.1beta3, but unfortunately I am not able to publish an > > > >> example online. > > > >> I was just wondering if other users have had similar problems and > > > >> found ways around it. > > > > > I have the same problem. Maybe I have a litte too much load burdened > > > > on scriptaculous. > > > > > My application has two sortable/dropable lists with nearly 150 > > > > elements in unordered lists. The elements (li) contain a small table > > > > with an in-place-edit field and are reloaded from the server on > > > > selection of some other fields. > > > > > On Firefox it is fast and usable, in IE I have to wait 5 seconds to > > > > get the lists on screen. IE seems to be very busy on this, my progress > > > > indicator (a animated gif) stops the animation. > > > > > Even worse I found, that the selection of a draggable element does not > > > > work on a slower computer, e.g. my laptop on battery power. When I try > > > > to select e element, I can only select the displayed text. This effect > > > > is worse in IE7 than IE6. > > > > >Ernst--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---