Re: [Rails-spinoffs] Getting the position of the draggable element?

2006-01-10 Thread Brian Peiris
This page will give you the position of the mouse when the element is dropped.script.aculo.us Drag and drop functional test file
div.hoverclass123 {
border:1px solid red;
}
script.aculo

[Rails-spinoffs] Getting the position of the draggable element?

2006-01-10 Thread Deco Rior
Hi, everyone: I am starting with doing draggables, etc. I am looking at the droptest_5 example. How do I get back the final position of the dragged element in coordinates? Deco ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org h

[Rails-spinoffs] sortables callbacks

2006-01-10 Thread Jaimz
i know someone just recently asked about queueing ajax requests, my question is similar in the regards that i don't want my application to send multiple requests. i have 2 sortabbles lists left, and right. when i move an item from left to the right the onUpdate callback will send 2 ajax request

Re: [Rails-spinoffs] Can be made sortable?

2006-01-10 Thread Thomas Fuchs
Sortables default to LI elements, but can be used with other elements too (see the "tag" option on Sortable.create on the script.aculo.us wiki): http://wiki.script.aculo.us/scriptaculous/show/Sortable.create -Thomas Am 10.01.2006 um 22:28 schrieb Lori Olson: I was experimenting with using

[Rails-spinoffs] Can be made sortable?

2006-01-10 Thread Lori Olson
I was experimenting with using some interesting CSS styles with and elements. But then I needed to be able to make this list a sortable_element in Rails, and it did not work. I had to convert it all to and . Is there a reason why sorting can't work within definition lists? I search

Re: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables

2006-01-10 Thread Tim Lucas
On 11/01/2006, at 6:58 AM, Thomas Fuchs wrote: Setting the scroll option on Draggables or Sortables to an element (or an element id) will attempt to auto-scroll this element when dragging. See test/functional/dragdrop3_test.html for a demo/usage. It's modelled after the behaviour in the Mac

RE: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables

2006-01-10 Thread Ryan Gahl
Thank you =) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Fuchs Sent: Tuesday, January 10, 2006 2:15 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables svn co http://dev.rub

Re: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables

2006-01-10 Thread Thomas Fuchs
svn co http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous checking the wiki... -Thomas Am 10.01.2006 um 21:04 schrieb Ryan Gahl: Trying to go to the SVN page via the wiki... not loading (site is always super slow) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables

2006-01-10 Thread Ryan Gahl
Trying to go to the SVN page via the wiki... not loading (site is always super slow) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Fuchs Sent: Tuesday, January 10, 2006 1:59 PM To: script.aculo.us List Subject: [Rails-spinoffs] [ANN] Autoscrolling

[Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables

2006-01-10 Thread Thomas Fuchs
Hi all, I've applied an experimental patch today to the scripaculous trunk. Setting the scroll option on Draggables or Sortables to an element (or an element id) will attempt to auto-scroll this element when dragging. See test/functional/dragdrop3_test.html for a demo/usage. It's modelled a

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
evalScripts is set to true by default using the rails helpers On 1/10/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > On Tuesday 10 January 2006 09:27, Dave Thomas wrote: > > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > > Can you not add the code in your display_cart view? > > > > > > J

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Jeremy Kitchen
On Tuesday 10 January 2006 09:27, Dave Thomas wrote: > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > Can you not add the code in your display_cart view? > > > > Just put something like <%= visual_effect :highlight, > > 'cart_item_'[EMAIL PROTECTED] %> in the display_cart template (maybe >

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
Can you paste some of the generated html? On 1/10/06, Dave Thomas <[EMAIL PROTECTED]> wrote: > > On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: > > > Can you not add the code in your display_cart view? > > > > Just put something like <%= visual_effect :highlight, > > 'cart_item_'[EMAIL PROTEC

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Dave Thomas
On Jan 10, 2006, at 10:43 AM, Andrew Kaspick wrote: Can you not add the code in your display_cart view? Just put something like <%= visual_effect :highlight, 'cart_item_'[EMAIL PROTECTED] %> in the display_cart template (maybe add some logic to only perform the effect if it's a xhr request) an

Re: [Rails-spinoffs] Queuing Ajax Requests

2006-01-10 Thread Jeremy Kitchen
On Monday 09 January 2006 23:11, Maninder, Singh wrote: > Hi, > > It's very obvious that for something like Autocomplete if we send a request > to the server on every key stroke it's going to be an overkill. > > So, I wanted to check if scriptaculous/prototype has some queuing mechanism > for remot

Re: [Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Andrew Kaspick
Can you not add the code in your display_cart view? Just put something like <%= visual_effect :highlight, 'cart_item_'[EMAIL PROTECTED] %> in the display_cart template (maybe add some logic to only perform the effect if it's a xhr request) and since rendering of that view is essentially going to h

[Rails-spinoffs] using dynamic element ids with visual_effect

2006-01-10 Thread Dave Thomas
Mike and I demo an Ajaxified version of the Depot application in the Rails Studio. Part of the demo is a cart in the sidebar which updates when you add a product to it. As well as updating the div, it also highlights the most recently added link item. Right now, we do it with: fu

[Rails-spinoffs] Changes to Autocomplete?

2006-01-10 Thread Cam McVey
Hi all, Can anyone confirm if anything has changed in Ajax.Autocompleter (or Autocompleter[.Base]) in 1.5.1 since 1.5? I've updated to this version and either something has changed (unlikely) or I've made a change somewhere that's borked it (much more likely). Events aren't firing on the text bo

Re: [Rails-spinoffs] WHAT IS SCRIPT.ACULO.US?

2006-01-10 Thread Chris Korhonen
Essentially Script.aculo.us, aside from being brilliant, is a _javascript_ library. It is built upon the functionality provided by the Prototype _javascript_ library and provides Visual Effects, Drag'n'Drop, AJAX form controls and a few other nice things. On 1/10/06, Rupa Rani <[EMAIL PROTECTED]> w

Re: [Rails-spinoffs] WHAT IS SCRIPT.ACULO.US?

2006-01-10 Thread Jarkko Laine
Hi Rupa, On 10.1.2006, at 12.01, Rupa Rani wrote: Can anybody tell what is script.aculo.us? like whether it is an java package, javascript package, javascript library or something else, Why not go to http://script.aculo.us/ and find out yourself? //jarkko -- Jarkko Laine http://jlaine.net

[Rails-spinoffs] WHAT IS SCRIPT.ACULO.US?

2006-01-10 Thread Rupa Rani
Hi, Can anybody tell what is script.aculo.us? like whether it is an java package, _javascript_ package, _javascript_ library or something else, Pls clear my doubt.   With Regards Rupa         ** The information conta

RE: [Rails-spinoffs] DWR Vs Prototype/Scriptaculous

2006-01-10 Thread Maninder, Singh
Thank you Chris for your answer. -Mandy. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] DWR Vs Prototype/Scriptaculous

2006-01-10 Thread Chris Lear
* Maninder, Singh wrote (10/01/2006 06:57): > Hello Everyone, > > Does anyone have any insight into the DWR library > (http://getahead.ltd.uk/dwr/index)? > > I want to know the pros/cons of using DWR Vs Prototype/Scriptaculous > libraries. > > I am a great fan of the prototype/scriptaculous comb