drag&drop position

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

drag&drop position

Yves Renaud
Hello,

I´m new to Seaside and have a question about drag&drop:
I would like to save the position of where a item has been dropped by the user.
I´ve got a droppable and know from the mailing-list, that something like:
onDrop: (html request
        callback: [:p | self savePosition: p ]
        value: (html element
            alias: 'arguments';
            property: 1;
            access: 'offsetTop'))
whould work. But I allready use a onDrop: with an updater. How to combine both?
When I use this onDrop: (html request...) the value I get is always the same, Is there al list of all values that can be recieved via acess:? Is there a documentation available? The methode comments are very rare.
So, how to get the position where an item has been dropped?

Thanks in advance
Bye
Yves



__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: drag&drop position

Lukas Renggli
Check out the prototype/scriptaculous documentation, and the source
code of these libraries if you didn't find an answer yet.
Alternatively FireBug can tell you what kind of properties are
available for a given object.

Cheers,
Lukas

On 8/30/08, Yves Renaud <[hidden email]> wrote:

> Hello,
>
> I´m new to Seaside and have a question about drag&drop:
> I would like to save the position of where a item has been dropped by the
> user.
> I´ve got a droppable and know from the mailing-list, that something like:
> onDrop: (html request
>         callback: [:p | self savePosition: p ]
>         value: (html element
>             alias: 'arguments';
>             property: 1;
>             access: 'offsetTop'))
> whould work. But I allready use a onDrop: with an updater. How to combine
> both?
> When I use this onDrop: (html request...) the value I get is always the
> same, Is there al list of all values that can be recieved via acess:? Is
> there a documentation available? The methode comments are very rare.
> So, how to get the position where an item has been dropped?
>
> Thanks in advance
> Bye
> Yves
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails.
> http://mail.yahoo.com
> _______________________________________________
>  seaside mailing list
>  [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside