jquery + html + Rails 4
$('#onward').html("<%= escape_javascript(render 'bus_listing', :is_return => true) %>"); // not working in < IE8. Other browser working fine
bus_listing是部分。
$('#onward')[0].innerHTML = "<%= escape_javascript(render 'bus_listing', :is_return => false) %>"; // working in but full Html page is flickering and not adding the new data in html.
IE8中替换.html()的任何解决方案。请分享。
答案 0 :(得分:1)
您是否尝试过innerHTML?
document.getElementById('onward').innerHTML="<%= escape_javascript(render 'bus_listing', :is_return => true) %>"