On Sun, Dec 4, 2011 at 1:33 PM, marc <[email protected]> wrote:
> Is this POST call not working because it is a cross-domain request?

The mechanism used for JSONP (dynamically injecting a <script> tag
pointing to the remote URL) means that it will always be a GET, as the
actual request is initiated by the browser when it renders the tag,
just as will occur for any script tag with an src attribute.

I'm not sure exactly what is happening with your example code, as I
don't know what jQuery will do with the combination of settings you've
used (for example, their docs include a note for the script dataType
that indicates "This will turn POSTs into GETs for remote-domain
requests", so I would have assumed that this would override a "POST"
specification for the type setting).

In a nutshell, though, if you have an Ajax request to a separate
domain, and are using JSONP to make this work, then it's going to be a
GET and not a POST.

--
Ezra Parker

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

Reply via email to