Hello All, I am just starting dabbling with Ajax so apologies if this is basic. I have creatde a page with a number of pops up on and they all work wonderfully and how I want them expect one. This one has a dynamically generated map in it. Our users can zoom in to parts of the map by dragging a cursor across sections of it - or move around the map by dragging it. Of course this doesn''t work now that I have placed the map in a draggable div as when they darg the mouse across the map the div is dragged -as you would expect. I have tried creating hande for the div but this does not seem to have much effect. What I really need to do is make the div draggable but make the map accessible. Many thanks Scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry I should have said I was am using the scriptaculous and prototype method of creating the draggable divs On Sep 7, 10:31 am, rexartorius <sc...-YkzO3Xfh5hNgaK6KpPXhnZITntTk8OEh@public.gmane.org> wrote:> Hello All, > > I am just starting dabbling with Ajax so apologies if this is basic. I > have creatde a page with a number of pops up on and they all work > wonderfully and how I want them expect one. This one has a dynamically > generated map in it. Our users can zoom in to parts of the map by > dragging a cursor across sections of it - or move around the map by > dragging it. Of course this doesn''t work now that I have placed the > map in a draggable div as when they darg the mouse across the map the > div is dragged -as you would expect. I have tried creating hande for > the div but this does not seem to have much effect. > > What I really need to do is make the div draggable but make the map > accessible. > > Many thanks > > Scott--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello again, I have decided to try a way around this. I make the div draggable by default, make a second div inside this which act as the handle. This can have a mouseover even that activates the drag and an onmouseout option that disables it. The problem is that I don''t understand syntax to activate and deactivate the draggable function on a div. On Sep 7, 10:33 am, rexartorius <sc...-YkzO3Xfh5hNgaK6KpPXhnZITntTk8OEh@public.gmane.org> wrote:> Sorry I should have said I was am using the scriptaculous and > prototype method of creating the draggable divs > > On Sep 7, 10:31 am, rexartorius <sc...-YkzO3Xfh5hNgaK6KpPXhnZITntTk8OEh@public.gmane.org> wrote: > > > > > Hello All, > > > I am just starting dabbling with Ajax so apologies if this is basic. I > > have creatde a page with a number of pops up on and they all work > > wonderfully and how I want them expect one. This one has a dynamically > > generated map in it. Our users can zoom in to parts of the map by > > dragging a cursor across sections of it - or move around the map by > > dragging it. Of course this doesn''t work now that I have placed the > > map in a draggable div as when they darg the mouse across the map the > > div is dragged -as you would expect. I have tried creating hande for > > the div but this does not seem to have much effect. > > > What I really need to do is make the div draggable but make the map > > accessible. > > > Many thanks > > > Scott- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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 9/7/07, rexartorius <scott-YkzO3Xfh5hNgaK6KpPXhnZITntTk8OEh@public.gmane.org> wrote:> > > darg the mouse across the map the > div is dragged -as you would expect. I have tried creating hande for > the div but this does not seem to have much effect. >I''ve found that that it works better for me if the handle has an ID *and* I pass the element to the draggable rather than the ID to the draggable constructor. Works like a champ. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---