[jQuery] [ajax] [Pending - this message has not been accepted by the mailing list yet] Simple AJAX->PHP Request Returns "Access to restricted URI denied"
I'm trying to do a pop-up form that onsubmit will send the data to a
PHP file that will mail(the_data). The page is located here :
http://www.kuhnsjewelers.com/products/blue-topaz-and-peridot-ring
Click on "Share this item" and when you click Send, firebug returns
the "access to restricted uri denied" error
Here's the function that is called when the user clicks send :
$('#share-send').click(function() {
$.ajax({
type: "GET",
url: "http://www.sunrisedesign.com/clients/kuhns/shopify/
share.php",
data: $("#share-form").serializeArray(),
dataType: "JSONP",
success: function(msg){
alert(msg);
}
});
$.unblockUI();
return false;
});
I sorta understand the whole cross-domain security thing, but I've
read if you change your dataType to "jsonp", that will fix it
The client-side file (http://www.kuhnsjewelers.com/products/blue-topaz-
and-peridot-ring) isn't PHP and the only dev I can use is Javascript.
Any help!?!?