Error "Access to restricted URI denied" when making AJAX cal

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); }, });

Related Posts

Creating AJAX Requests with Drupal 7

Ahmad Kharbat
Read more

Gmail Error Prevention

Kayla Wren
Read more

Create HTML Access Log on Pantheon with GoAccess

Kyle Taylor
Read more

How To Fine Tune Drupal's Editorial Controls with Workbench Access

Kristin Brinner
Read more

Making Money with Your Drupal Website

Brandon
Read more

Your CMS is Making Your Web Development Harder

Tom McCracken
Read more