How to create traggable columns with Prototype and Scriptaculous
Geshan Manan...
1 post
|
How can I create draggable columns and place then in any order with scripaculous. It is possible to create draggable rows with http://talkingcode.co.uk/2007/11/14/drag-and-drop-table-rows-with-ajax-scriptaculous-and-prototype/. Please help. |
Christophe P...
28 posts
|
Hey Geshan, Can you clarify what you mean by “columns” and “rows,” exactly? Effectively dragging table rows is kind of a nightmare for now, as various browsers have a very different level of support for As for columns, they’re not represented by an element in HTML, so you can’t make a whole column draggable, as there’s no such element as the column itself. If you need to make columns draggable, it has to look like a column, but actually be something else codewise. Perhaps what you’re looking for is just a series of left-floating Perhaps HTML tables are mandated in your page because of the semantics of the underlying data, but if you don’t mind wrecking the semantics of the page, you can use alternate markup and CSS tricks to make it all draggable. It becomes pretty easy then: just consider what floating elements can do, when dragged! Also, if you’re more into just creating a portal-like interface, have a look at SĂ©bastien Gruhier’s Prototype Portal attempt. |
2 posts, 2 voices
