I spent quite a bit of time farting around with this problem and thing
I figured out what I was doing wrong. If someone can confirm I'm on
the write track I'd appreciate it.

I read somewhere that the format of the passed url which indicates
that .getJSON should handle the call as a x-browser call is "url?
queryparams&callback=?". Is that right? If that is the format of the
call then I'm assuming the .getJSON method will create a <script> in
the DOM. If that's right where is the <script> tag created? In the
<head> tag?

Also, if the url doesn't have that callback=? in it then is a straight
XMLHTTPRequest called to the server?

Thanks, any clarification on the above would be greatly appreciated.

Guy

On Dec 4, 8:31 pm, Guy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use the $.getJSON() but with no luck. Here's the code
> I'm using to make the call.
>
> $.getJSON(http://the.domain.com/getJSON.php?
> experiment=104&callback=handleIt104.callback&format=jsonp&askingfor=recipet­ransaction');
>
> This calls a php script which as an example would return the
> following:
>
> handleIt104.callback({"status": "success", "recipe": "Ne",
> "transaction": "11451988", "recipemask": "", "askingfor":
> "recipetransaction", "experiment": "104"});
>

Reply via email to