…
…
Nel tutorial di oggi dedicato allo sviluppo di applicazioni web per iPhone, imparerete come effettuare un Drag and Drop sugli elementi presenti del vostro sito.
node.ontouchmove = function(e){ if(e.touches.length == 1){ // Only deal with one finger var touch = e.touches[0]; // Get the information for finger #1 var node = touch.target; // Find the node the drag started from node.style.position = "absolute"; node.style.left = touch.pageX + "px"; node.style.top = touch.pageY + "px"; } } …
…
…
…
tra i tag e occorre inserire
<script type="text/javascript"> function verificacheck(f){ if (f.agree.checked == false ) { alert("devi accettare i termini per continuare"); return false; }else return true; } </script>
il modulo html potrebbe essere qualcosa di simile
<form action=”" method=”GET” onsubmit=”return verificacheck(this)”
Accetto termini e condizioni: <input type=”checkbox” value=”0″ name=”agree”/
<input type=”submit” value=”Continua”/
</form…