SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: AngelinaBelle on June 18, 2009, 01:34:48 PM

Title: "Object doesn't support this property or method" window.addEventListener
Post by: AngelinaBelle on June 18, 2009, 01:34:48 PM
Using the IE8 browser, and with sp image resizing turned on, I get the error message
Object doesn't support this property or method, pointing to the line:
Code: [Select]
window.addEventListener("load", sp_image_resize, false);

When I switch on compatibility mode, the html contains
Code: [Select]
var window_oldSPImageOnload = window.onload;
window.onload = sp_image_resize;

instead -- no complaints from IE8.
 
sportal_init is checking $context['browser']['is_ie'] to decide which of these to use.  Does SMF treat IE8 as an IE browser?
 
Title: Re: "Object doesn't support this property or method" window.addEventListener
Post by: [SiNaN] on June 29, 2009, 11:21:07 AM
Moved to the Bug Reports.

Thanks! Its now in the Bug Tracker:

http://simpleportal.net/index.php?issue=216.0
SimplePortal 2.3.8 © 2008-2024, SimplePortal