dimanche 22 février 2015

Retrieving value from JavaScript after animation has ended


I'm using this jsfiddle for the animation and the final value is



wheel.segments[i]


http://ift.tt/1sGa6li


And I would like to retrieve that value after animation has stopped so I can use it in PHP. I tried something like:



function retrivewinner() {
var winner = wheel.segments[i];
window.location.href = "index.php?tag=" + winner;
}


But it would freeze the browser or reload each time





Aucun commentaire:

Enregistrer un commentaire