GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Try new method of insertion to stop IE crashing
kneath (author)
Sun Jun 08 20:17:25 -0700 2008
commit  91e861a912648b1d06b48efa81b5cb32ff43e6ca
tree    a068b78598fe4cb7502e9faea856167ea52edbb5
parent  443c71c69438a5c341a3f575b1a2632cdb8473fa
...
1
2
3
4
 
 
 
5
6
7
...
1
2
3
 
4
5
6
7
8
9
0
@@ -1,7 +1,9 @@
0
 (function(){
0
   var ad_data = '<%= format_for_javascript(partial("shared/ad", :campaign => @campaign, :format => :html)) %>';
0
   var ad_spot = document.getElementById('greed_<%= @spot.id %>');
0
- ad_spot.innerHTML = ad_data;
0
+ var tmp_container = document.createElement('div');
0
+ tmp_container.innerHTML = ad_data;
0
+ ad_spot.appendChild(tmp_container);
0
   
0
   var links = ad_spot.getElementsByTagName('a');
0
   

Comments

    No one has commented yet.