Error on this website - 'obj' is undefined
-> $this->Website

#1: Error on this website - 'obj' is undefined Author: rosbifLocation: Paris, France PostPosted: Thu Apr 09, 2009 6:01 am
    ----
IE7 is throwing up an error for me on this site these days:

Line:29
Char:32
Error: 'obj' is undefined

Seems to appear on every page I view. Anything I should do?

#2: Re: Error on this website - 'obj' is undefined Author: rlguraLocation: Cleveland, OH USA PostPosted: Thu Apr 09, 2009 6:41 pm
    ----
Code::
<script type="text/javascript">
var gat = function(){
	if (typeof(_gat) != "undefined")
	{
		try{var pageTracker=_gat._getTracker("UA-6671839-1");pageTracker._trackPageview();}catch(e){}
	}
};
if (window.addEventListener) { window.addEventListener("load", gat, false); }
else if (window.attachEvent) { window.attachEvent(obj, "onload", gat); }
</script>

yep, attachEvent takes only 2 parameters

#3: Re: Error on this website - 'obj' is undefined Author: rosbifLocation: Paris, France PostPosted: Thu Apr 09, 2009 7:50 pm
    ----
So the bug is at the DragonflyCMS end?

#4: Re: Error on this website - 'obj' is undefined Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Sat Apr 11, 2009 10:26 am
    ----
Thanks for noticing. I've modified it and hope it works.

I'm testing google analytics in XHTML Wink

#5: Re: Error on this website - 'obj' is undefined Author: rosbifLocation: Paris, France PostPosted: Sat Apr 11, 2009 10:48 am
    ----
That's fixed it DJ. I presume this was just an error affecting this site rather than one we might see in the next upgrade on our own sites?



-> $this->Website

All times are GMT

Page 1 of 1