It works perfectly. Bloody brillant and simple solution as well! I owe you one internet beer.
-Joel. On Jun 19, 3:48 pm, "Dan Dorman" <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 1:21 PM, Dan Dorman <[EMAIL PROTECTED]> wrote: > > I managed to get it working on IE by inserting a string rather than an > > Element object. > > Okay, I got it working with an Element object too, by moving the > onError attribute to an event handler: > > var favicon = new Element('img', { > className: 'favicon', > src: (link.href).replace(/^(http:\/\/[^\/]+).*$/, '$1') + '/favicon.ico', > alt: 'external link' > > }).observe('error', function() { $(this).remove(); }); > > :Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---