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 <[EMAIL PROTECTED]> 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@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