I have an iframe that uploads a file to rails
I want to respond back with javascript. The format that comes in is html
I tried
<script>
// JS code
</script>
But it loaded a new page and then executed the JS
Key is to upload a file asynchronously and then do more things on the page
Gem remotipart seems nice but i want to keep dependencies low