Our site has several affiliates that use a JavaScript widget to display the latest content available in an ad space. It's all JavaScript powered. The insert the script in the right place, and our rails app generates some rhtml to get inserted. On Wednesday, this suddenly stopped working in IE. Every other browser displays the code just fine, except IE. Could someone point me in a direction on how to resolve this?
Here is the offending code:
document.write('<div id="std-widget" style="width:300px;height:250px;text-align:center;border-style:none;">');
document.write('<a href="<%= @hrefPath %>" target="_blank">')
<% if @deal %>
document.write('<img src="<%= @imagePath %>" style="border-style:none;" alt="Today\'s Deal in <%= @affiliate.market.name %> - <%= @deal.subject.gsub("'","\\\\'") %>" />');
<% else %>
document.write('<img src="<%= @imagePath %>" style="border-style:none;" alt="Sign Up Today for Great Deals in <%= @affiliate.market.name %>" />');
<% end %>
document.write('</a>');
document.write('</div>');
Is there something in there that IE suddenly dislikes? Thanks!