I''m building an app that allows users to sample .wav files. What is the best way to have RoR play sounds? I was just going to do something like this, but am wondering if there is a better way. Thanks! <script> function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.Play(); } </script> <embed src="alf.wav" autostart=false width=0 height=0 id="sound1" enablejavascript="true"> <form> <input type="button" value="Play Sound" onClick="EvalSound(''sound1'')"> </form> -- Posted via http://www.ruby-forum.com/.