rjs - how to display returned javascript

Hello,

My rjs is returning javascript to the browser, as it should. I am
trying to replace the html inside of a div. How do I get it to
display the code and not the script?

http://pastie.caboo.se/88348

http://pastie.caboo.se/88373

Thanks!

The answer is to render the partial directly without using rjs at all.

Also, in case anyone searches for this, to do an ajax call from radio
buttons, write a very simple javascript that defines the value of a
hidden field and use the hidden field to feed the value to the
request:

  function doMe(value) {
    var hide = document.getElementById('hiddenType')
    hide.value = value
  }