[Rails-spinoffs] Sortable onUpdate problem

2006-01-31 Thread Peter Michaux
Hi, I have two sortables with different options (but same tags. just 'li'). When I drag an item from sortable1 to sortable2 I want it to gain the options that the sortable2 items have. I've tried all day to understand how Draggables and their observers are destroyed but I keep gettting buggy beha

Re: [Rails-spinoffs] How to fire event listener after site update by Ajax Updater?

2006-01-31 Thread Jerod Venema
Gregor,If the site is being updated by Ajax, you can just implement your code wherever that "update" code runs.Perhaps you're looking for the AjaxOptions? That will let you specify the function to run when an Ajax request completes successfully... http://www.sergiopereira.com/articles/prototype.js.

Re: [Rails-spinoffs] Finding Final Position with a Draggable Object

2006-01-31 Thread Jerod Venema
Try   this.cumulativeOffset(element);It should give you the top and left points of the element, which you can then store in a cookie or something.-Jerod On 1/31/06, Whitcraft, Jon <[EMAIL PROTECTED]> wrote: Hello,   I have a draggable window.  I would like to have it so that whe

[Rails-spinoffs] Finding Final Position with a Draggable Object

2006-01-31 Thread Whitcraft, Jon
Hello,   I have a draggable window.  I would like to have it so that when they come back to the page with the draggable window that it remembers where they left it when they last visited.  How would I get the final position after the dragging has been stopped?  I have been looking threw th

Re: [Rails-spinoffs] resizing multiple images using getElementsByClassName

2006-01-31 Thread Siegfried Puchbauer
what about modifying the global stylesheet? all the images have the same classname and onchange of the slider you just modify the class style... --> no loop through the dom elementsjust define an empty

RE: [Rails-spinoffs] resizing multiple images usinggetElementsByClassName

2006-01-31 Thread Tom Fakes
One way to do this with minimal code at resize time is to manipulate the style rule for a class that is used by every image.  I haven’t tried this, and this is something I’ve only read the documentation for:   Set a class on each image you want to resize together On initializ

Re: [Rails-spinoffs] resizing multiple images using getElementsByClassName

2006-01-31 Thread Alex Duffield
Cool, thanks, but they are just doing a while loop aswell. And as for a iPhoto like scale they are missing it a bit. In his (her?) example the images all scale up to the top left, but in iPhoto, the images scale from there center, until there is enough room for one more or one less column.  (Take a

[Rails-spinoffs] compress js to one file

2006-01-31 Thread Louis Walch
I would like to suggest that scriptaclous starts distrubuting with an alternative js file which contains all 6 seperate .js files into one. This will make it easier for js compression and gzipping to save on download time. Discussed at: http://www.zimbra.com/blog/archives/2006/01/zimbra_ajax_css_d

[Rails-spinoffs] Slider values from .25 - 1

2006-01-31 Thread Alex Duffield
I am having some difficulty understanding how to set the slider values to a specific range       var scalebar = new Control.Slider('scaller', 'track',{   sliderValue:1,   minimum:.25,       onSlide:function(v){doscale(v)},       onChange:function(v){doscale(v)} });No matter what I set the "Mini

RE: [Rails-spinoffs] Re: form elements in sortable lists

2006-01-31 Thread Louis Walch
Thanks for the help again Greg. I think i will take your suggesstion and just require a toggle between editing and sorting modes. --louis > I never got it to work back on one of the early release candidates of > scriptaculous 1.5. However, I thought I read in one of the release > notes that it

RE: [Rails-spinoffs] Re: form elements in sortable lists

2006-01-31 Thread Gregory Hill
I never got it to work back on one of the early release candidates of scriptaculous 1.5. However, I thought I read in one of the release notes that it was fixed. Are you using the latest version? I ended up just disabling the sortable while they were in 'editing' mode, and then recreating it aft

[Rails-spinoffs] Re: form elements in sortable lists

2006-01-31 Thread Louis Walch
Has anyone else experienced problems with this, and furthermore how to allow it to work cross browser? > i am having problems with editing items which are inside a sortable > list... > different on browsers > > PC IE - Works fine > PC FF - select boxes work, input boxes are NOT editable > MAC Saf

Re: [Rails-spinoffs] resizing multiple images using getElementsByClassName

2006-01-31 Thread Timo Hoepfner
Hi Alex,I cannot help you with the details, but here's a description on how to do iPhoto like image resizing with scriptaculous:http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-_javascript_/Hope this helps,TimoAm 31.01.2006 um 05:23 schrieb Alex Duffield:I am building a iPho