Try "jsonp" (all lowercase).

--John



On Fri, Dec 5, 2008 at 5:54 PM, mibrenner <[EMAIL PROTECTED]> wrote:
>
>
> 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
> 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!?!?
>
>
> --
> View this message in context: 
> http://www.nabble.com/Simple-AJAX-%3EPHP-Request-Returns-%22Access-to-restricted-URI-denied%22-tp20863282s27240p20863282.html
> Sent from the jQuery Dev List mailing list archive at Nabble.com.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to