Hello All, does anyone know of a facility w/in prototype or scriptaculous to create a rubber-band box? By this I mean where the user clicks and drags out a rectangular area and on mouseup, the drawn area remains. Thanks! --john --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Fri, Oct 26, 2007 at 09:31:56AM -0600, John Cartwright wrote:> > Hello All, > > does anyone know of a facility w/in prototype or scriptaculous to create > a rubber-band box? By this I mean where the user clicks and drags out a > rectangular area and on mouseup, the drawn area remains.I don''t know of anything built in, but it''s relatively easy to implement. You''ll need to add a div to the end of the document, set its style: position: absolute; background-color: transparent; border: 1px solid red; ...then set its top, left, bottom, and right as you move the mouse.> Thanks! > --john--Greg --~--~---------~--~----~------------~-------~--~----~ 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 have the beginnings of this done with some nice extras. Perhaps I''ll clean it up fairly soon and let it loose. I accidently deleted my first version and I had to start from scratch and it''s not quite to the point my first attempt was at. It''s prototype/scriptaculous based. I''ll post a link when I have something. On 10/26/07, Gregory Seidman <gsslist+prototype-dNXPQ6k9rNiG6BJUYyje5axOck334EZe@public.gmane.org> wrote:> > On Fri, Oct 26, 2007 at 09:31:56AM -0600, John Cartwright wrote: > > > > Hello All, > > > > does anyone know of a facility w/in prototype or scriptaculous to create > > a rubber-band box? By this I mean where the user clicks and drags out a > > rectangular area and on mouseup, the drawn area remains. > > I don''t know of anything built in, but it''s relatively easy to implement. > You''ll need to add a div to the end of the document, set its style: > position: absolute; > background-color: transparent; > border: 1px solid red; > ...then set its top, left, bottom, and right as you move the mouse. > > > Thanks! > > --john > --Greg > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 made one about a year and a half ago, just to see how to do it. Free free to steal my code. http://beta.moveable.com/jameslab/ajaxio/ On Oct 26, 11:31 am, John Cartwright <john.c.cartwri...-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> Hello All, > > does anyone know of a facility w/in prototype or scriptaculous to create > a rubber-band box? By this I mean where the user clicks and drags out a > rectangular area and on mouseup, the drawn area remains. > > Thanks! > > --john--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok here is my rough version, cleaned up a bit today. Only tested in firefox though, but maybe this is what you''re looking for. http://www.redlinesoftware.com/labs/selection Basically click start, then you can drag a selection box over the links with your mouse and press ESC to stop (this is how to stop it for now by default). If it''s what you''re looking for and you have some improvements, I can integrate them in. Andrew On 10/26/07, Andrew Kaspick <akaspick-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have the beginnings of this done with some nice extras. Perhaps > I''ll clean it up fairly soon and let it loose. I accidently deleted > my first version and I had to start from scratch and it''s not quite to > the point my first attempt was at. It''s prototype/scriptaculous > based. > > I''ll post a link when I have something. > > On 10/26/07, Gregory Seidman <gsslist+prototype-dNXPQ6k9rNiG6BJUYyje5axOck334EZe@public.gmane.org> wrote: > > > > On Fri, Oct 26, 2007 at 09:31:56AM -0600, John Cartwright wrote: > > > > > > Hello All, > > > > > > does anyone know of a facility w/in prototype or scriptaculous to create > > > a rubber-band box? By this I mean where the user clicks and drags out a > > > rectangular area and on mouseup, the drawn area remains. > > > > I don''t know of anything built in, but it''s relatively easy to implement. > > You''ll need to add a div to the end of the document, set its style: > > position: absolute; > > background-color: transparent; > > border: 1px solid red; > > ...then set its top, left, bottom, and right as you move the mouse. > > > > > Thanks! > > > --john > > --Greg > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---