[Seaside] Detect the position of a page div

Robert Sirois watchlala at hotmail.com
Tue Sep 22 03:29:00 UTC 2009

Is there a way to detect the offset of a given element on a page? The following simply returns '$this.offset()'.

    html div
        id: 'bob';
        script: ((html jQuery new draggable) onDrag: (html jQuery ajax script: [:s | s add: ((html jQuery: #bob) html: (html jQuery: #bob) offset)]));
        with: html jQuery this offset.



If it helps, the purpose of this function is to let the server know if a map is being moved in order to buffer the new tiles; essentially, a tiling script (ie. Google maps).
Hotmail® has ever-growing storage! Don’t worry about storage limits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090921/759a035f/attachment.htm

More information about the seaside mailing list