Error "Access to restricted URI denied" when making AJAX cal
The Problem
The Solution
[[jQuery]] as of version 1.2 has a new dataType setting that works around this problem. It can only be used with the .ajax function, not .get or .post. Example syntax
$.ajax({
type: 'GET',
url: stats_counter_url,
data: { 'action':'impression', 'venueid':venueid, 'pn':pn, 'filter':filter, 'ads':ads},
dataType: 'json',
jsonp:'jsonp_callback',
success: function(data) {
alert(data);
},
});