Your post demonstrates confusion on another issue:
The id attribute of HTML elements *must* be unique to the page. It's
part of the definition of the id attribute.
http://www.w3.org/TR/html401/struct/global.html#h-7.5.2
The $() function accepts a) an element id, or b) a reference to the
element itself. All Prototype/Scriptaculous functions call $()
internally, so anytime you pass an element reference, you may pass
either the id or a reference--it's not necessary to wrap it in $()
first.
TAG
On Jun 15, 2007, at 9:05 AM, irata wrote:
>
> Dear TAG,
>
> thanks a log. That was the answer to my question!!!
>
> For everyone with the same problem, a short summary ;-)
>
> Before defining any Draggable you must insert this
>
> Position.includeScrollOffsets = true;
>
> in your script.
>
> And then define your Draggable with
>
> new Draggable( element, { ..., scroll: $('<dropDiv>') } );
>
> But don't ask me, if you have more than one "dropDiv" ;-)
>
>
> Regards,
>
> Tobias
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---