Why it's giving me raw HTML?
Posted
by leomayleomay
on Stack Overflow
See other posts from Stack Overflow
or by leomayleomay
Published on 2010-06-13T08:43:28Z
Indexed on
2010/06/13
8:52 UTC
Read the original article
Hit count: 163
jQuery
|ruby-on-rails
I'm using Facebox, and when I tried to change the content of a tag, it's giving me raw HTML but the rendered form, the code snippet is:
jQuery('#facebox .content').html("<%= escape_javascript(render :partial => 'form')%>");
Anybody has any idea about this? Thanks a lot.
© Stack Overflow or respective owner