Re: [Proto-Scripty] Re: Dragging between fixed and non-fixed Sortables (position offset bugs)

18 views
Skip to first unread message
Message has been deleted
Message has been deleted

Alex McAuley

unread,
Apr 4, 2010, 3:09:35 AM4/4/10
to prototype-s...@googlegroups.com
cant even login dude..


Alex Mcauley
http://www.thevacancymarket.com


----- Original Message -----
From: "Martin" <mu.smar...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-s...@googlegroups.com>
Sent: Saturday, April 03, 2010 1:35 PM
Subject: [Proto-Scripty] Re: Dragging between fixed and non-fixed Sortables
(position offset bugs)


Hi everyone,

well, I'm still stuck with this.
I guess this isn't the right place, but I am eager to get an offer if
anyone thinks they are capable of tweaking scriptaculous (or fixing
this in whatever way). Where can i find the prototype/scriptaculous
cracks that will dig into this for some $$?

Thanks, Martin

On Mar 28, 3:09 pm, Martin <mu.smartbri...@gmail.com> wrote:
> Hello,
>
> I have drag-snap-offset problems when dragging between Sortables.
>
> My application involves dragging people from the 'available employees
> list', on the right, to projects the person has applied for.
> (unavailable targets are dimmed on drag start.)
>
> Have a look at it here:
>
> ->http://www.qasmartbr.nine.ch/unico/smartbridge/hr/indexgrp.php?action...
>
> username: gg
> password: gg
>
> There seem to be 2 positioning bugs:
>
> 1) scrolling the main window causes weird offsets between the dragged
> item and the snap-location in droppables.
> 2) scrolling within the 'available employee list' (when many employees
> available) causes a similar problem.
>
> Things work well only if when both of these are scrolled all the way
> up!
>
> Note that the 'available employee list' has position:fixed and is
> draggable itself (grab at top) !
>
> So far, I have tried dragdropextra.js and o few other patching
> suggestions, without success :(
>
> Any help is greatly appreciated!
>
> --Martin
>
> I am using using the latest version of scriptaculous, 1.8.2 i think
>
> I have ghosting off, and i manually clone a person dragged out of the
> 'available employees list' back into it if he or she is still
> available for other projects, among other caveats. I suppose i could
> turn ghosting on and deal with these things differently, if that helps
> solve the offset problem.
>
> the sortables are created on the fly (li onmouseover).
>
> Sortable.create() code snipplet:
>
> if(targets.length<2) return;
>
> for(i=0;i<targets.length;i++) {
> srtbls[i]=$(targets[i]);
> Sortable.create(targets[i],
> {dropOnEmpty:true,
> containment:targets,
> constraint:false,
> scroll:window,
> }
> );
> }
> li.style.cursor='move';

--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to
prototype-s...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scripta...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Message has been deleted

Alex McAuley

unread,
Apr 4, 2010, 10:25:15 AM4/4/10
to prototype-s...@googlegroups.com
the link from your post
(http://www.qasmartbr.nine.ch/unico/smartbridge/hr/indexgrp.php?action...
) doesnt work dude..

Alex Mcauley

http://www.thevacancymarket.com


----- Original Message -----
From: "Martin" <mu.smar...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-s...@googlegroups.com>
Sent: Sunday, April 04, 2010 2:31 PM
Subject: [Proto-Scripty] Re: Dragging between fixed and non-fixed Sortables
(position offset bugs)


thanks for the link.

login works fine, for all i can see (logs, try myself etc.)

still hoping someone here can help.


On Apr 4, 9:09 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> cant even login dude..
>
> Alex Mcauleyhttp://www.thevacancymarket.com

Jeff C

unread,
Apr 4, 2010, 10:37:33 AM4/4/10
to prototype-s...@googlegroups.com
Alex,

The original link he provided works fine. If you click the link within
the original post (and not copy and paste it) it works.

http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/a115f3052223a3f0?hl=en

I also shorted the link that was originally provided to make sure it
is not cut off.

http://bit.ly/dBjELX

- J e f f C o n k l i n -
- http://www.getoutsidenj.com
- http://twitter.com/GetOutsideNJ
- http://www.carabs.com

Alex McAuley

unread,
Apr 5, 2010, 4:00:47 AM4/5/10
to prototype-s...@googlegroups.com
I think you have a Z-index problem if i am using the App correctly...

Also draggables / droppables sometimes dont play nice in tables - this is in
the docs!..

Martin

unread,
Apr 5, 2010, 8:53:46 AM4/5/10
to Prototype & script.aculo.us
yep, draggables are only visible when over droppables, i have not been
able to figure out why... z-index of draggable is way high enough..

i did experiment a little and found i have the same offset problems
without tables. nevertheless i will get rid of the tables (i
"inherited" them from the former dev) in the next haul.


On Apr 5, 10:00 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:


> I think you have a Z-index problem if i am using the App correctly...
>
> Also draggables / droppables sometimes dont play nice in tables - this is in
> the docs!..
>

> Alex Mcauleyhttp://www.thevacancymarket.com
>
> ----- Original Message -----
> From: "Jeff C" <car...@gmail.com>
> To: <prototype-s...@googlegroups.com>
> Sent: Sunday, April 04, 2010 3:37 PM
> Subject: Re: [Proto-Scripty] Re: Dragging between fixed and non-fixed
> Sortables (position offset bugs)
>
> > Alex,
>
> > The original link he provided works fine. If you click the link within
> > the original post (and not copy and paste it) it works.
>

> >http://groups.google.com/group/prototype-scriptaculous/browse_thread/...


>
> > I also shorted the link that was originally provided to make sure it
> > is not cut off.
>
> >http://bit.ly/dBjELX
>
> > - J e f f  C o n k l i n -
> > -http://www.getoutsidenj.com
> > -http://twitter.com/GetOutsideNJ

> > -http://www.carabs.com


>
> > On Sun, Apr 4, 2010 at 10:25 AM, Alex McAuley
> > <webmas...@thecarmarketplace.com> wrote:
> >> the link from your post
> >> (http://www.qasmartbr.nine.ch/unico/smartbridge/hr/indexgrp.php?action...
> >> ) doesnt work dude..
>
> >> Alex Mcauley
>
> >>http://www.thevacancymarket.com
>

> >> ----- Original Message ----- From: "Martin" <mu.smartbri...@gmail.com>

Alex McAuley

unread,
Apr 5, 2010, 9:57:06 AM4/5/10
to prototype-s...@googlegroups.com
Couple of other things that sometimes make browsers behave weirdly...

A couple or more of your tables and <tr> have id's with spaces in them..

Alex McAuley

unread,
Apr 5, 2010, 10:03:33 AM4/5/10
to prototype-s...@googlegroups.com
I also think its something to do with your fixed table - that allows you to
scroll behind things ..

I do believe if you change the layout the problem will go away..

Hariz Soleminio

unread,
Apr 7, 2010, 3:42:37 PM4/7/10
to prototype-s...@googlegroups.com
Hi Guys,

I'll ask a stupid question of newbies like me. I have a prototype and I use firebug for the development.

I keep having "prototype [Break on this error] Error in parsing value for 'top'. " in my console.

what seems to be the problem? is it my scripting? but I think i don't have any problem in my scripting.

Since I'm just using a $("anyid")  in my development.


Thanks in advance guys.


Feel safer online. Upgrade to the new, safer Internet Explorer 8 optimized for Yahoo! to put your mind at peace. It's free.
Get IE8 here!

Alex Wallace

unread,
Apr 7, 2010, 3:58:25 PM4/7/10
to prototype-s...@googlegroups.com
I'm assuming you're modifying the style attribute "top" for the element $("anyid") -- and I'm further assuming that you're feeding it an integer. If you're doing:

$("anyid").style.top = 42;

Change it to:

$("anyid").style.top = "42px";

If my assumptions are completely incorrect, please isolate the failing line of code and send that to the list.

Cheers,
Alex

--

T.J. Crowder

unread,
Apr 8, 2010, 3:11:33 AM4/8/10
to Prototype & script.aculo.us
Hi Hariz,

You seem to have replied in the thread "Dragging between fixed and non-
fixed Sortables (position offset bugs)" but with a completely new
topic (and new title). My guess is that you're writing via an email
client and hit "reply" on a message from the other thread and just
cleared out the message area of the new email and changed the title;
that doesn't work, because there's a thread ID in the email headers.
(Easy mistake to make! :-) ) Please be sure when mailing the list (or
creating a message in GGroups) on a completely new topic *not* to
reply within an existing thread (by using "new email" rather than
"reply" or whatever); it mixes the two topics together.

I've changed the thread title back.

Thanks,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com

On Apr 7, 8:42 pm, Hariz Soleminio <harriz_solemi...@rocketmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages