Microsoft AJAX & Google AdSense

Published Friday, December 22, 2006 3:22 PM

I was bitten by this bug that was introduced in Microsoft AJAX RC. It seems that Microsoft AJAX is overriding the default implementation of Date.parse from Javascript with it's own implementation. Normally this isn't a bad idea, but it only accepted a certain set of templates when parsing making Google AdSense break upon loading on the page. Luckily enough, some developer named Cyril has a workaround available. The forum post and his blog entry (in French) have more information. Those visiting my website should no longer have a Javascript error displayed as I've implemented this workaround temporarily.

by mhawley
Filed under: , ,

Comments

# ScottGu said on Friday, December 22, 2006 8:06 PM

Yep - it was a bad bug.  The good news is that it is fixed in the next drop of ASP.NET AJAX.

# CumpsD said on Saturday, December 23, 2006 11:11 AM

I only see a chunk of html below your news item.

The google adsense chunk. It escaped the greater and lesser then sign.

Just mentioning :)

# Matt Gibbs said on Thursday, December 28, 2006 2:42 AM

This will be fixed in the next release.

# Alexander Trakhimenok said on Friday, February 09, 2007 9:39 PM

They've fixed the issue.

Just tested it with RTM as gonna use it for my http://AdSenseASP.NET/ .

# making money said on Thursday, June 26, 2008 9:36 PM

I really appreciate your posts. Thanks!