I got a javascript funktion:
function handlePercentage(filledInPixels) {
filledInPixels = filledInPixels || 0;
console.log(filledInPixels + '%');
if (filledInPixels > 80) {
canvas.parentNode.removeChild(canvas);
}
}
Now I want to access a rails controller to check a random string when filledInPixels > 80
How can I do that without reloading the page?