Hi all, I am new to scriptaculous, I really like what I have seen thus far. I am now trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains another div (D3) which contains all my draggable objects, D3 has a css to set overflow: auto. When dragging from D2 to D1 (which is the droppable) the objects seem to go "under" D1. If I set overflow: off it works fine. I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js I can see the node is cloned and inserted at the level of the parent node. This may be the problem because I have D2 and D3 so I may need to attach at the parentNode.parentNode, not sure though. Any help would be great. Glenn --~--~---------~--~----~------------~-------~--~----~ 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, so after a bit more testing, adding the cloned node higher and higher up in the document. This has the effect of changing where on the screen that cloned node gets displayed. From this it seems that we are dragging the original node, not the cloned node which is the one that is at a higher level. Is this correct? If so should we be dragging the cloned node instead? Thanks Glenn On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi all, > > I am new to scriptaculous, I really like what I have seen thus far. I am now > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > another div (D3) which contains all my draggable objects, D3 has a css to set > overflow: auto. > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > "under" D1. If I set overflow: off it works fine. > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > I can see the node is cloned and inserted at the level of the parent node. This > may be the problem because I have D2 and D3 so I may need to attach at the > > parentNode.parentNode, not sure though. > > Any help would be great. > > Glenn > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This exact thing just came up... see my response to the post from last week... http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c Or go directly to my post from Feb, which is cited above (on how to attach at the doc level): http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html @Thomas: this comes up often enough, maybe it should be added in to the release (not my code per se, but the general feature)? I, as always, do not have time to do anything remotely close to patch submitting, testing, etc... but the community seems to want this. Just a thought. On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi all, > > I am new to scriptaculous, I really like what I have seen thus far. I am now > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > another div (D3) which contains all my draggable objects, D3 has a css to set > overflow: auto. > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > "under" D1. If I set overflow: off it works fine. > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > I can see the node is cloned and inserted at the level of the parent node. This > may be the problem because I have D2 and D3 so I may need to attach at the > parentNode.parentNode, not sure though. > > Any help would be great. > > Glenn > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
From my code... in initDrag it does the switch here...> var tempNode = this.element; > this.element = this._clone; > this._clone = tempNode;Then in finishDrag it switches them back before destroying the clone. It also handles cloning the original position. I make no claims that this will work for all applications, just a general approach. It has, however, worked just fine for me in all my projects. On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Ok, so after a bit more testing, adding the cloned node higher and higher > up in the document. This has the effect of changing where on the screen that > cloned node gets displayed. From this it seems that we are dragging the > original node, not the cloned node which is the one that is at a higher > level. Is this correct? If so should we be dragging the cloned node instead? > > > Thanks > Glenn > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi all, > > > > I am new to scriptaculous, I really like what I have seen thus far. I am now > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > > > another div (D3) which contains all my draggable objects, D3 has a css to set > > overflow: auto. > > > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > > "under" D1. If I set overflow: off it works fine. > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > > I can see the node is cloned and inserted at the level of the parent node. This > > may be the problem because I have D2 and D3 so I may need to attach at the > > > > parentNode.parentNode, not sure though. > > > > Any help would be great. > > > > Glenn > > > > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-29 15:49 UTC
Re: overflow: auto and drag drop problem
Ryan, Thanks for the info. Just wondering, did you add the floating option? Also I am using 1.6.4 which checks the ghosting option (and clones the node) in the startDrag function rather than the initDrag. Do you think it will work if I add your changes to the startDrag function? Thanks Glenn Ryan Gahl wrote:> This exact thing just came up... see my response to the post from last > week... > > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c > > Or go directly to my post from Feb, which is cited above (on how to attach > at the doc level): > > http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html > > > @Thomas: this comes up often enough, maybe it should be added in to the > release (not my code per se, but the general feature)? I, as always, do not > have time to do anything remotely close to patch submitting, testing, etc... > but the community seems to want this. Just a thought. > > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi all, > > > > I am new to scriptaculous, I really like what I have seen thus far. I am now > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > another div (D3) which contains all my draggable objects, D3 has a css to set > > overflow: auto. > > > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > > "under" D1. If I set overflow: off it works fine. > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > > I can see the node is cloned and inserted at the level of the parent node. This > > may be the problem because I have D2 and D3 so I may need to attach at the > > parentNode.parentNode, not sure though. > > > > Any help would be great. > > > > Glenn > > > > > > > > > > > > -- > Ryan Gahl > Application Development Consultant > Athena Group, Inc. > Inquire: 1-920-955-1457 > Blog: http://www.someElement.com > > ------=_Part_9940_2696862.1164811170293 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 2542 > > <div>This exact thing just came up... see my response to the post from last week...</div> > <div> </div> > <div><a href="http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c">http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c > </a></div> > <div> </div> > <div>Or go directly to my post from Feb, which is cited above (on how to attach at the doc level):</div> > <div> </div> > <div><a href="http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html">http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html</a></div> > <div> </div> > <div> </div> > <div>@Thomas: this comes up often enough, maybe it should be added in to the release (not my code per se, but the general feature)? I, as always, do not have time to do anything remotely close to patch submitting, testing, etc... but the community seems to want this. Just a thought. > <br><br> </div> > <div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Glenn MacGregor</b> <<a href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:</span> > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><pre><font size="2"><font size="2">Hi all,<br><br>I am new to scriptaculous, I really like what I have seen thus far. I am now > <br>trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of<br>the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > <br>another div (D3) which contains all my draggable objects, D3 has a css to set<br>overflow: auto.<br><br>When dragging from D2 to D1 (which is the droppable) the objects seem to go<br>"under" D1. If I set overflow: off it works fine. > <br><br>I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js<br>I can see the node is cloned and inserted at the level of the parent node. This<br>may be the problem because I have D2 and D3 so I may need to attach at the > <br>parentNode.parentNode, not sure though.<br><br>Any help would be great.<br><br> Glenn<br></font><br></font></pre><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Gahl<br>Application Development Consultant<br>Athena Group, Inc.<br>Inquire: 1-920-955-1457<br>Blog: <a href="http://www.someElement.com">http://www.someElement.com > </a> > > ------=_Part_9940_2696862.1164811170293----~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ryan, Thanks for the info. Just a quick question: I am using version 1.6.4 which handles the clone in the startDrag rather than the initDrag as yours does. Did you move that functionality from startDrag to initDrag or do you think I can add your code to the startDrag function. Again, thanks for the help. Glenn On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Ok, so after a bit more testing, adding the cloned node higher and higher > up in the document. This has the effect of changing where on the screen that > cloned node gets displayed. From this it seems that we are dragging the > original node, not the cloned node which is the one that is at a higher > level. Is this correct? If so should we be dragging the cloned node instead? > > > Thanks > Glenn > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi all, > > > > I am new to scriptaculous, I really like what I have seen thus far. I am now > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > > > > > another div (D3) which contains all my draggable objects, D3 has a css to set > > overflow: auto. > > > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > > "under" D1. If I set overflow: off it works fine. > > > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > > I can see the node is cloned and inserted at the level of the parent node. This > > may be the problem because I have D2 and D3 so I may need to attach at the > > > > > > parentNode.parentNode, not sure though. > > > > Any help would be great. > > > > Glenn > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, I added the floating option, to allow you to still just use the default ghosting behavior if desired... I can''t answer the question about if it will work with the newer versions of scripty... only 1 way to find out :-) On 11/29/06, Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Ryan, > > Thanks for the info. Just wondering, did you add the floating option? > Also I am using 1.6.4 which checks the ghosting option (and clones the > node) in the startDrag function rather than the initDrag. > > Do you think it will work if I add your changes to the startDrag > function? > > Thanks > Glenn > > Ryan Gahl wrote: > > This exact thing just came up... see my response to the post from last > > week... > > > > > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c > > > > Or go directly to my post from Feb, which is cited above (on how to > attach > > at the doc level): > > > > > http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html > > > > > > @Thomas: this comes up often enough, maybe it should be added in to the > > release (not my code per se, but the general feature)? I, as always, do > not > > have time to do anything remotely close to patch submitting, testing, > etc... > > but the community seems to want this. Just a thought. > > > > > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi all, > > > > > > I am new to scriptaculous, I really like what I have seen thus far. I > am now > > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left > side of > > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 > contains > > > another div (D3) which contains all my draggable objects, D3 has a css > to set > > > overflow: auto. > > > > > > When dragging from D2 to D1 (which is the droppable) the objects seem > to go > > > "under" D1. If I set overflow: off it works fine. > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in > dragdrop.js > > > I can see the node is cloned and inserted at the level of the parent > node. This > > > may be the problem because I have D2 and D3 so I may need to attach at > the > > > parentNode.parentNode, not sure though. > > > > > > Any help would be great. > > > > > > Glenn > > > > > > > > > > > > > > > > > > > -- > > Ryan Gahl > > Application Development Consultant > > Athena Group, Inc. > > Inquire: 1-920-955-1457 > > Blog: http://www.someElement.com > > > > ------=_Part_9940_2696862.1164811170293 > > Content-Type: text/html; charset=ISO-8859-1 > > X-Google-AttachSize: 2542 > > > > <div>This exact thing just came up... see my response to the post from > last week...</div> > > <div> </div> > > <div><a href=" > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c > "> > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/ed97e27e9eb18590/51dec123e264fa6c?lnk=gst&q=ryan+gahl&rnum=2#51dec123e264fa6c > > </a></div> > > <div> </div> > > <div>Or go directly to my post from Feb, which is cited above (on how to > attach at the doc level):</div> > > <div> </div> > > <div><a href=" > http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html > "> > http://www.mail-archive.com/rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org/msg01495.html > </a></div> > > <div> </div> > > <div> </div> > > <div>@Thomas: this comes up often enough, maybe it should be added in to > the release (not my code per se, but the general feature)? I, as always, do > not have time to do anything remotely close to patch submitting, testing, > etc... but the community seems to want this. Just a thought. > > <br><br> </div> > > <div><span class="gmail_quote">On 11/29/06, <b > class="gmail_sendername">Glenn MacGregor</b> <<a href="mailto: > glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:</span> > > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px > 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><pre><font size="2"><font > size="2">Hi all,<br><br>I am new to scriptaculous, I really like what I have > seen thus far. I am now > > <br>trying to create a page which contains 2 div''s. Div 1 (D1) is the > left side of<br>the page about 200px wide. Div 2 (D2) is the remaining > space. D2 contains > > <br>another div (D3) which contains all my draggable objects, D3 has a > css to set<br>overflow: auto.<br><br>When dragging from D2 to D1 (which is > the droppable) the objects seem to go<br>"under" D1. If I set > overflow: off it works fine. > > <br><br>I am using version 1.6.4 with ghosting on. Starting on line 334 > in dragdrop.js<br>I can see the node is cloned and inserted at the level > of the parent node. This<br>may be the problem because I have D2 and D3 so I > may need to attach at the > > <br>parentNode.parentNode, not sure though.<br><br>Any help would be > great.<br><br> > Glenn<br></font><br></font></pre><br><br><br></blockquote></div><br><br > clear="all"><br>-- <br>Ryan Gahl<br>Application Development > Consultant<br>Athena Group, Inc.<br>Inquire: 1-920-955-1457<br>Blog: <a > href="http://www.someElement.com">http://www.someElement.com > > </a> > > > > ------=_Part_9940_2696862.1164811170293-- > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
My answer was, I don''t know, but the only way to find out is to try it... On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Ryan, > > Thanks for the info. Just a quick question: I am using version 1.6.4 which > handles the clone in the startDrag rather than the initDrag as yours does. > Did you move that functionality from startDrag to initDrag or do you think I > can add your code to the startDrag function. > > Again, thanks for the help. > > Glenn > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Ok, so after a bit more testing, adding the cloned node higher and > > higher up in the document. This has the effect of changing where on the > > screen that cloned node gets displayed. From this it seems that we are > > dragging the original node, not the cloned node which is the one that is at > > a higher level. Is this correct? If so should we be dragging the cloned node > > instead? > > > > Thanks > > Glenn > > > > On 11/29/06, Glenn MacGregor < glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi all, > > > > > > I am new to scriptaculous, I really like what I have seen thus far. I am now > > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > > > > > > > > another div (D3) which contains all my draggable objects, D3 has a css to set > > > overflow: auto. > > > > > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > > > "under" D1. If I set overflow: off it works fine. > > > > > > > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > > > I can see the node is cloned and inserted at the level of the parent node. This > > > may be the problem because I have D2 and D3 so I may need to attach at the > > > > > > > > > parentNode.parentNode, not sure though. > > > > > > Any help would be great. > > > > > > Glenn > > > > > > > > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ryan Gahl wrote:> @Thomas: this comes up often enough, maybe it should be added in to the > release (not my code per se, but the general feature)? I, as always, do > not have time to do anything remotely close to patch submitting, > testing, etc... but the community seems to want this. Just a thought.+1 Yes please make it an official option that allows you to drag a cloned node that is attached at the document level. Jonathan -- Jonathan Weiss http://blog.innerewut.de --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-29 17:51 UTC
Re: overflow: auto and drag drop problem
Ryan, Sorry about the double post...not sure what happened there. Anyway I have tried it and it works just fine. The only change I made was to not put the visibility to hidden and I also removed the line in your startDrag which changes the visibility to empty string. Other than that I used the relevant lines from your initDrag to my startDrag and from finishDrag to finishDrag. Works great, thanks Glenn Ryan Gahl wrote:> My answer was, I don''t know, but the only way to find out is to try it... > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Ryan, > > > > Thanks for the info. Just a quick question: I am using version 1.6.4 which > > handles the clone in the startDrag rather than the initDrag as yours does. > > Did you move that functionality from startDrag to initDrag or do you think I > > can add your code to the startDrag function. > > > > Again, thanks for the help. > > > > Glenn > > > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Ok, so after a bit more testing, adding the cloned node higher and > > > higher up in the document. This has the effect of changing where on the > > > screen that cloned node gets displayed. From this it seems that we are > > > dragging the original node, not the cloned node which is the one that is at > > > a higher level. Is this correct? If so should we be dragging the cloned node > > > instead? > > > > > > Thanks > > > Glenn > > > > > > On 11/29/06, Glenn MacGregor < glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > Hi all, > > > > > > > > I am new to scriptaculous, I really like what I have seen thus far. I am now > > > > trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of > > > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > > > > > > > > > > > > another div (D3) which contains all my draggable objects, D3 has a css to set > > > > overflow: auto. > > > > > > > > When dragging from D2 to D1 (which is the droppable) the objects seem to go > > > > "under" D1. If I set overflow: off it works fine. > > > > > > > > > > > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js > > > > I can see the node is cloned and inserted at the level of the parent node. This > > > > may be the problem because I have D2 and D3 so I may need to attach at the > > > > > > > > > > > > parentNode.parentNode, not sure though. > > > > > > > > Any help would be great. > > > > > > > > Glenn > > > > > > > > > > > > > > > > > > > > > -- > Ryan Gahl > Application Development Consultant > Athena Group, Inc. > Inquire: 1-920-955-1457 > Blog: http://www.someElement.com > > ------=_Part_14185_7110315.1164820331403 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 3065 > > My answer was, I don''t know, but the only way to find out is to try it...<br><br> > <div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Glenn MacGregor</b> <<a href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:</span> > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Ryan,<br><br>Thanks for the info. Just a quick question: I am using version 1.6.4 which handles the clone in the startDrag rather than the initDrag as yours does. Did you move that functionality from startDrag to initDrag or do you think I can add your code to the startDrag function. > <br><br>Again, thanks for the help. > <div><span class="e" id="q_10f34ad1d6947330_1"><br><br> Glenn <br><br> > <div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Glenn MacGregor</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > </a>> wrote: </span> > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Ok, so after a bit more testing, adding the cloned node higher and higher up in the document. This has the effect of changing where on the screen that cloned node gets displayed. From this it seems that we are dragging the original node, not the cloned node which is the one that is at a higher level. Is this correct? If so should we be dragging the cloned node instead? > <br><br>Thanks<br><span> Glenn</span> > <div><span><br><br> > <div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Glenn MacGregor</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank"> glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > </a>> wrote:</span> > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><pre><font size="2"><font size="2">Hi all,<br><br>I am new to scriptaculous, I really like what I have seen thus far. I am now > <br>trying to create a page which contains 2 div''s. Div 1 (D1) is the left side of<br>the page about 200px wide. Div 2 (D2) is the remaining space. D2 contains > <br><br><br>another div (D3) which contains all my draggable objects, D3 has a css to set<br>overflow: auto.<br><br>When dragging from D2 to D1 (which is the droppable) the objects seem to go<br>"under" D1. If I set overflow: off it works fine. > <br><br><br><br>I am using version 1.6.4 with ghosting on. Starting on line 334 in dragdrop.js<br>I can see the node is cloned and inserted at the level of the parent node. This<br>may be the problem because I have D2 and D3 so I may need to attach at the > <br><br><br>parentNode.parentNode, not sure though.<br><br>Any help would be great.<br><br> Glenn<br></font><br></font></pre></blockquote></div><br></span></div></blockquote></div><br><br><br>Athena Group, Inc.<br>Inquire: 1-920-955-1457<br>Blog: <a href="http://www.someElement.com">http://www.someElement.com</a> > > ------=_Part_14185_7110315.1164820331403----~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Coolness :-) Glad that old stuff holds up. If you haven''t realized already, it may me a good idea to extract these customizations into a seperate file that you load into the page after scriptaculous, essentially overwriting scripty''s definitions for those methods with this new stuff... therefore easing your upgrade pains to new scripty versions. On 11/29/06, Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <Glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Ryan, > > Sorry about the double post...not sure what happened there. Anyway I > have tried it and it works just fine. The only change I made was to not > put the visibility to hidden and I also removed the line in your > startDrag which changes the visibility to empty string. Other than that > I used the relevant lines from your initDrag to my startDrag and from > finishDrag to finishDrag. > > Works great, thanks > > Glenn > > Ryan Gahl wrote: > > My answer was, I don''t know, but the only way to find out is to try > it... > > > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Ryan, > > > > > > Thanks for the info. Just a quick question: I am using version 1.6.4which > > > handles the clone in the startDrag rather than the initDrag as yours > does. > > > Did you move that functionality from startDrag to initDrag or do you > think I > > > can add your code to the startDrag function. > > > > > > Again, thanks for the help. > > > > > > Glenn > > > > > > On 11/29/06, Glenn MacGregor <glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > Ok, so after a bit more testing, adding the cloned node higher and > > > > higher up in the document. This has the effect of changing where on > the > > > > screen that cloned node gets displayed. From this it seems that we > are > > > > dragging the original node, not the cloned node which is the one > that is at > > > > a higher level. Is this correct? If so should we be dragging the > cloned node > > > > instead? > > > > > > > > Thanks > > > > Glenn > > > > > > > > On 11/29/06, Glenn MacGregor < glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > Hi all, > > > > > > > > > > I am new to scriptaculous, I really like what I have seen thus > far. I am now > > > > > trying to create a page which contains 2 div''s. Div 1 (D1) is the > left side of > > > > > the page about 200px wide. Div 2 (D2) is the remaining space. D2 > contains > > > > > > > > > > > > > > > another div (D3) which contains all my draggable objects, D3 has a > css to set > > > > > overflow: auto. > > > > > > > > > > When dragging from D2 to D1 (which is the droppable) the objects > seem to go > > > > > "under" D1. If I set overflow: off it works fine. > > > > > > > > > > > > > > > > > > > > I am using version 1.6.4 with ghosting on. Starting on line 334 in > dragdrop.js > > > > > I can see the node is cloned and inserted at the level of the > parent node. This > > > > > may be the problem because I have D2 and D3 so I may need to > attach at the > > > > > > > > > > > > > > > parentNode.parentNode, not sure though. > > > > > > > > > > Any help would be great. > > > > > > > > > > Glenn > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Ryan Gahl > > Application Development Consultant > > Athena Group, Inc. > > Inquire: 1-920-955-1457 > > Blog: http://www.someElement.com > > > > ------=_Part_14185_7110315.1164820331403 > > Content-Type: text/html; charset=ISO-8859-1 > > X-Google-AttachSize: 3065 > > > > My answer was, I don''t know, but the only way to find out is to try > it...<br><br> > > <div><span class="gmail_quote">On 11/29/06, <b > class="gmail_sendername">Glenn MacGregor</b> <<a href="mailto: > glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:</span> > > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px > 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Ryan,<br><br>Thanks for the > info. Just a quick question: I am using version 1.6.4 which handles the > clone in the startDrag rather than the initDrag as yours does. Did you move > that functionality from startDrag to initDrag or do you think I can add your > code to the startDrag function. > > <br><br>Again, thanks for the help. > > <div><span class="e" id="q_10f34ad1d6947330_1"><br><br> Glenn > <br><br> > > <div><span class="gmail_quote">On 11/29/06, <b > class="gmail_sendername">Glenn MacGregor</b> <<a onclick="return > top.js.OpenExtLink(window,event,this)" href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > target="_blank">glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > </a>> wrote: </span> > > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt > 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Ok, so after a bit > more testing, adding the cloned node higher and higher up in the document. > This has the effect of changing where on the screen that cloned node gets > displayed. From this it seems that we are dragging the original node, not > the cloned node which is the one that is at a higher level. Is this correct? > If so should we be dragging the cloned node instead? > > <br><br>Thanks<br><span> Glenn</span> > > <div><span><br><br> > > <div><span class="gmail_quote">On 11/29/06, <b > class="gmail_sendername">Glenn MacGregor</b> <<a onclick="return > top.js.OpenExtLink(window,event,this)" href="mailto:glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > target="_blank"> glennmac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > </a>> wrote:</span> > > <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt > 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><pre><font > size="2"><font size="2">Hi all,<br><br>I am new to scriptaculous, I really > like what I have seen thus far. I am now > > <br>trying to create a page which contains 2 div''s. Div 1 (D1) is the > left side of<br>the page about 200px wide. Div 2 (D2) is the remaining > space. D2 contains > > <br><br><br>another div (D3) which contains all my draggable objects, D3 > has a css to set<br>overflow: auto.<br><br>When dragging from D2 to D1 > (which is the droppable) the objects seem to go<br>"under" D1. If > I set overflow: off it works fine. > > <br><br><br><br>I am using version 1.6.4 with ghosting on. Starting on > line 334 in dragdrop.js<br>I can see the node is cloned and inserted at > the level of the parent node. This<br>may be the problem because I have D2 > and D3 so I may need to attach at the > > <br><br><br>parentNode.parentNode, not sure though.<br><br>Any help > would be great.<br><br> > Glenn<br></font><br></font></pre></blockquote></div><br></span></div></blockquote></div><br><br><br>Athena > Group, Inc.<br>Inquire: 1-920-955-1457<br>Blog: <a href=" > http://www.someElement.com">http://www.someElement.com</a> > > > > ------=_Part_14185_7110315.1164820331403-- > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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''m experiencing a strange problem when trying to visualize XMLHttpRequests. I''ve got "Show XMLHttpRequests" checked in the options of the console window, but Firebug won''t show until I disable and re-enable the option. I have to do this after each page load. I watched into Firefox about:config and found "extensions.firebug.showXMLHttpRequests" that seems to be responsible to save the state of the option. Now, disabling an re-enabling the option from withing about:config does the same... it makes the option work... but only until I load the page again. Does anyone have a clue on how to solve that? I already uninstalled Firebug and Firefox several times and removed the Firefox installation directory. I''m on WinXP with FF2 and FB1.0b4. Thanks for any help :-) Miguel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Martin Bialasinski
2006-Dec-12 13:45 UTC
Re: Strange behaviour enabling "Show XMLHttpRequests"
On 12/9/06, Miguel <mhauptma73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''m experiencing a strange problem when trying to visualize XMLHttpRequests. > I''ve got "Show XMLHttpRequests" checked in the options of the console > window, but Firebug won''t show until I disable and re-enable the option.There is a Firebug group on Google Groups. You will have better luck asking there. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Yep... I realized too late that I had mixed up the recipient.<br> Sorry for posting wrong.<br> <br> Miguel<br> <br> Martin Bialasinski wrote: <blockquote cite="mid1f788d0b0612120545v3a6004c4vcb20b72387f7caed-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org" type="cite"> <pre wrap="">On 12/9/06, Miguel <a class="moz-txt-link-rfc2396E" href="mailto:mhauptma73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"><mhauptma73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">I''m experiencing a strange problem when trying to visualize XMLHttpRequests. I''ve got "Show XMLHttpRequests" checked in the options of the console window, but Firebug won''t show until I disable and re-enable the option. </pre> </blockquote> <pre wrap=""><!----> There is a Firebug group on Google Groups. You will have better luck asking there. </pre> </blockquote> <br> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. <br> To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>