I made such a beast a few years ago when I was teaching myself how to
use Prototype/Scriptaculous. It's a little kludgy but you can probably
scoop a snippit of code that you'll find useful.

http://jameslab.moveable.com/ajaxio/

On Apr 11, 6:35 am, David Beckwith <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   I'm trying to make a draggable resizable.
>
> <div id='main_window'>
>   <div id='resizer'>
>   </div>
> </div>
>
> <script type="text/javascript">
>    <%= draggable_element_js 'main_window' %>
>    <%= draggable_element_js 'resizer' %>
> </script>
>
> Basically I want to bind the dragging movement of resizer to make the
> style.width and sytle.heigh properties of main_window change.
>
> Does anybody know how to do this?  Should i use bind,
> bindAsEventListener, or should i override one of the properties of one
> of the draggables?
>
> Thanks for your suggestions and help.
> David :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to