On Mon, Oct 26, 2009 at 9:58 PM, MorningZ <
morningz@gmail.com> wrote:
>
> if this is your *exact* code
>
> $.getJSON(url + "?callback?", function (json) {
>
> then you're missing an equal sign
>
> $.getJSON(url + "?callback=?", function (json) {
Good catch! Fortunately I had the = in my real code. I just forgot to
type it in the email.
> As for the rest of your issue of "what to do", this post should help:
>
>
http://groups.google.com/group/jquery-en/browse_thread/thread/fd821bf488c9a9d3?hl=en#Okay, I think I understand about using jsonp now. I don't think I need
it in my case though because my call isn't cross-site. So I still have
these questions:
1) What should the response type be when using jsonp?
2) What should the response type be when not using jsonp? Is that just
called plain json?
3) When not using jsonp, what should the server code return? Still
JavaScript code that calls the callback function with the json content
or just the json content?
> On Oct 26, 8:14 pm, Mark Volkmann <
r.mark.volkm...@gmail.com>