Hey Guys,
i was playing around with the awesome Draggable Library and i wondered how i go about saving(DB) the postion of the currecnt object and load it again later?
https://greensock.com/draggable
i tried the following, but not sure if it's correct approach( since the values return includes translate3d):
onDragEnd: function() {
var obj = $(this._eventTarget);
// option one
var pos = item.position();;
var posx = pos.left;
var posy = pos.bottom;
console.log(parseInt (posx ) );
console.log( parseInt (posy ));
// option two
console.log(parseInt (this.y) );
console.log( parseInt (this.x));
}