Currently, I have implemented the following code to send $_GET values to a PHP page:
$.get('/includes/sticky_notes/update_position.php',{
x : ui.position.left,
y : ui.position.top,
z : zIndex,
id : parseInt(ui.helper.find('span.data').html())
});
Is it possible to pass the position of the UI item as a percentage instead of using pixels on the screen?
The reason behind this query is that the UI items appear on the page with the last set positions and if the screen size is smaller for some users, the items may display off-screen.