Monday, August 31, 2009

[jQuery] trying to talk to googleadservices via $.getScript()

Hello,

miraculously enough, this call

$.getScript('http://www.googleadservices.com/pagead/conversion.js', function() { confirm('g'); });

does nothing and this one

$.getScript('http://tracker.webtraffic.com.br/statistic.js', function() {confirm('w')});

gives me the dialog. On firefox and IE (didn't test the others).

This is completely weird, but it does not surprise me from a company, that gives this kind of noop code to us:

if (1) {
  var google_conversion_value = 1;
}

I mean, seriously (taken from
http://www.google.com/adwords/learningcenter/text/19216.html)!

But - anyone did come around this somehow, or maybe test this in his/her firebug console?

--
Jan

No comments: