Re: [jQuery] Re: detecting edge cases when swapping divs

2009-12-14 Thread Charlie
you'll have to do some more to reset the visibility to visible on the up move of course. Was just steering you into one possible way to find the limits Charlie wrote: any tests on .arrowdown will not be of benefit , you need to check for position of it's parent .pane since you are inserting

Re: [jQuery] Re: detecting edge cases when swapping divs

2009-12-14 Thread Charlie
any tests on .arrowdown will not be of benefit , you need to check for position of it's parent .pane since you are inserting after "p" tags in this case try this: $(".pane .arrowdown").click(function() {     $(this).parents(".pane").slideUp("slow",function(){             $(this).insertAfter($

[jQuery] Re: detecting edge cases when swapping divs

2009-12-14 Thread robert...@gmail.com
Abbey - Here you go - this works for me in IE http://www.greenearthcrew.com/jquery/moverows.htm On Dec 14, 5:43 pm, Abbey wrote: > @Robert The code didn't work for me. > > @Charlie I tried length=0 and length=1 and the pane always goes past > the footer div. > > $(".pane .arrowdown").click(fun

[jQuery] Re: detecting edge cases when swapping divs

2009-12-14 Thread Abbey
@Robert The code didn't work for me. @Charlie I tried length=0 and length=1 and the pane always goes past the footer div. $(".pane .arrowdown").click(function() { if($(this).next().length==1) { // charlie: will return true if at bottom, would have to test after the animation, or use length==1

[jQuery] Re: detecting edge cases when swapping divs

2009-12-13 Thread robert...@gmail.com
I am trying to learn Jquery and tried to tackle this one. I figured you must identify id and class, then rename each after a movement. This seems to work ok - but I am sure there is a more elegent way to do it. http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> moving boxes experiment 1.