1) graham01Group: Members Posts: 8Joined: 21 Feb 2008Location: englandIP: 78.86.--.--
Posted:
is there a way to stop this? i want the page to be refreshed after something has been dragged or resized because the co-ordinates get saved into a database, this works fine, exept when you have to click on a div to bring up the resize handles, the page is refreshed.. so items can never be resized.
is there a way of making the ondragend function run only when something is actually moved or resized?
Thanks
2) Angus TurnbullGroup: Moderators Posts: 4235Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
Well, the script fires it on release of the element. You could simply save the element co-ordinates during ondragstart and compare them with the saved values in ondragend to see if you need to do anything?