Hi, i am using scriptaculous Draggables with a textarea as a Droppable. It works just fine, but in IE the textarea will appear on top of the dragged element (covering it) no matter what. Oddly enough, dropping the Draggable onty it still works fine. Googeling around a bit I got the sense that some browsers treat form element as floating above the html and that there is no fix. Is this true, or was anybody able to work around this issue? Thanks! Ingo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve
2007-Feb-17 11:58 UTC
Re: dragging elements over form elements(textarea)
It''s because IE renders form fields as native components, and renders native components on top no matter what. It''s been an issue since day #1. Maybe you can fiddle around with z-index on CSS or stuff like that, but I wouldn''t be too sure. Anyone more expert on this than me around here? -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve wrote:> It''s because IE renders form fields as native components, and renders > native components on top no matter what. It''s been an issue since day > #1. Maybe you can fiddle around with z-index on CSS or stuff like that, > but I wouldn''t be too sure.Neither z-index or CSS will help. The only thing I''ve found that will help is to detect if the browser is IE6 or less (IE7 doesn''t have this problem) and then insert an iframe under your element of the same size as your element. This will hide the control. I know browser sniffing is usually considered bad, but if there''s a way to find out if the browser has this problem without sniffing type and version number, I''d like to know. -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---