Hi everyone, I''m having a problem dragging a div with a background image using the draggable library. What happens is that, while I''m dragging it, it reloads the background image with each pixel movement (like an ''onDrag'' function). Has anyone else experienced this, or does anyone know how to fix it? Thanks in advance. Cheers, Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''ve had a similar problem whenever anything changes requiring the element to be repainted (a new class for a parent element, for example). The precise circumstances escape me, but the root cause is that IE is not caching the image, but requesting it each time it''s needed (once for each list item, for example). I haven''t concerned myself with it, so I don''t know whether it''s due to client-side caching (which I know isn''t working properly in my case), or whether it''s an IE bug, or something else entirely. Try setting your webserver/appserver to make sure the image is caching, then try it again. TAG tomg-PGZyUNKar/Q@public.gmane.org On Dec 19, 2006, at 2:34 PM, irrelative wrote:> > Hi everyone, > > I''m having a problem dragging a div with a background image using the > draggable library. What happens is that, while I''m dragging it, it > reloads the background image with each pixel movement (like an > ''onDrag'' > function). Has anyone else experienced this, or does anyone know how > to fix it? Thanks in advance. > > Cheers, > Justin > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks Tom. Looks like it wasn''t caching because I was using a development server...seems to be working now. It still flickers as I drag, but at least it isn''t costing bandwidth. Cheers, Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You need to turn on caching on background images on IE: try { document.execCommand("BackgroundImageCache", false, true); } catch(err) { // something else :) } that stopped my flickering cheers, Jani --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---