Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] DragDropMgr.refreshCache()

Expand Messages
  • dav.glass@yahoo.com
    Gerry -- That depends on the setup of your use case :) You can try to move the items into interaction groups, then only refreshing the cache of the elements
    Message 1 of 2 , Jan 2, 2008
    • 0 Attachment
      Gerry --

      That depends on the setup of your use case :)

      You can try to move the items into interaction groups, then only refreshing the cache of the elements that are in that group..

      Similar to the approach taken with this example:
      http://blog.davglass.com/files/yui/dd16/

      Hope that helps :)
      Dav
       
      Dav Glass
      dav.glass@...
      blog.davglass.com
       
       
      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: gerryvandermaesen <ydn-javascript@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Wednesday, January 2, 2008 6:40:06 AM
      Subject: [ydn-javascript] DragDropMgr.refreshCache()

      Hi,

      I implemented a sortable list with the YUI D&D module. While dragging
      an item, I insert a dummy "hinting" element on the current position to
      show where the element would be inserted when dropped. This hinting
      element has it's own dimensions and ofcourse changes the X&Y offset
      for the other elements beneath the current position. Therefore I am
      refreshing the d&d cache to recalculate the offsets of the elements in
      the appropriate d&d group.

      However, I notice a considerable lag caused by the cache refresh even
      with not more then 10 drag&drop elements involved. When not refreshing
      the cache the interactions are very fast, but ofcourse the triggering
      is off.

      So my question is, is it possible to further speed up this process for
      a better user experience?

      Kind regards,

      Gerry.




      Yahoo! Groups Links

      <*> To visit your group on the web, go to:
          http://groups.yahoo.com/group/ydn-javascript/

      <*> Your email settings:
          Individual Email | Traditional

      <*> To change settings online go to:
          http://groups.yahoo.com/group/ydn-javascript/join
          (Yahoo! ID required)

      <*> To change settings via email:
          mailto:ydn-javascript-digest@yahoogroups.com
          mailto:ydn-javascript-fullfeatured@yahoogroups.com

      <*> To unsubscribe from this group, send an email to:
          ydn-javascript-unsubscribe@yahoogroups.com

      <*> Your use of Yahoo! Groups is subject to:
          http://docs.yahoo.com/info/terms/


    Your message has been successfully submitted and would be delivered to recipients shortly.