You can use the option ''handle'' for that...
More info at http://script.aculo.us/docs/Draggable.html
Greetz,
Wizz
On Apr 28, 8:46 am, macsig
<sigbac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello guys,
> I have created a simple draggable div with scriptaculous
>
> <div id="popoup_wrap">
> <div id="popup_header"><a
href="javascript:void(0)"
> onclick="hide_it"><close</a></div>
> <div id="popup_text"
class="popup_content"><%= show_text %></div>
> </div>
>
> <script type="text/javascript"
language="javascript">
> new Draggable(''popoup_wrap'', {} );
> </script>
>
> now I would like to know (I couldn''t find this information on
> scriptaculous wiki) if I can add some parameters to the draggable call
> in order to make the div draggable only if the mouse is clicked over
> the popup_header div (an not over the popup_text div).
>
> Any idea?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---