[Proto-Scripty] Sortable list bug.

2011-07-25 Thread Andrew Senner
I have a script that creates sortable lists on the fly embedded in a cakephp helper. I'm running across an issue when creating a second sortable list. Everything works perfectly on the first call to 'Sortable.create()', and everything works perfectly on the second call as well.. except: When

Re: [Proto-Scripty] Sortable list bug.

2011-07-25 Thread Walter Lee Davis
On Jul 25, 2011, at 12:10 PM, Andrew Senner wrote: I have a script that creates sortable lists on the fly embedded in a cakephp helper. I'm running across an issue when creating a second sortable list. Everything works perfectly on the first call to 'Sortable.create()', and everything works

[Proto-Scripty] Re: Prototype's evolution

2011-07-25 Thread Tom Gregory
Plus one from me too. I agree there should be an easy way for writing in the margins (as Walter put it). I wouldn't encourage allowing those pages to be used for help requests (which could get overwhelming for a reader to slog through), but like the php.net docs, neat solutions and gotchas

[Proto-Scripty] Re: Sortable list bug.

2011-07-25 Thread Tom Gregory
For problems like this, a minimal example page also helps. Of course, I'm a bit selfish in asking for one, as I find that often when trying to create a minimal reproducible case I find the problem in my own code ... =) TAG On Jul 25, 12:10 pm, Andrew Senner drewdiddy...@gmail.com wrote: I

[Proto-Scripty] Re: Sortable list bug.

2011-07-25 Thread Andrew Senner
BTW, I know sortables are kind of flaky with tables. But using tbodytr seems to work. Normally I would stick with divide, but as im just implementing this feature to a work in progress, I can't edit the base code. Alrighty thanks for the quick replies. basically the helper is as follows (name:

[Proto-Scripty] Re: Sortable list bug.

2011-07-25 Thread Andrew Senner
I figured I might as well include the php file so there is no confusion: ?php class SortableRowHelper Extends AppHelper { var $rowNum = 1; var $tags = array( 'tablebodystart'= 'tbody id=%s %s%s', 'tablebodyend' =

[Proto-Scripty] Re: Sortable list bug.

2011-07-25 Thread Andrew Senner
Here is sortable_row.php: ?php class SortableRowHelper Extends AppHelper { var $rowNum = 1; var $tags = array( 'tablebodystart'= 'tbody id=%s %s%s', 'tablebodyend' = '/tbody', 'tablerowstart'

[Proto-Scripty] 2 questions about offsets

2011-07-25 Thread Ran Berenfeld
Hello all. 2 questions : 1. can someone please explain the difference in all the offset functions : - cumulativeOffsethttp://api.prototypejs.org/dom/Element/cumulativeOffset/ - cumulativeScrollOffsethttp://api.prototypejs.org/dom/Element/cumulativeScrollOffset/ -

[Proto-Scripty] Re: Sortable list bug.

2011-07-25 Thread Andrew Senner
Okay, once again thank you for your replies. Walter it turns out that you were right, kinda. :P It wasn't the positioning. When I set the display from inline-block to inline-table it worked perfectly. On Jul 25, 1:34 pm, Tom Gregory tagreg...@gmail.com wrote: For problems like this, a minimal