I am not 100% sure, but I remember reading somewhere that jQuery looks
for "=?" to replace the "?" part of the pattern.

Try querying

http://example.com/xxx/yyy/=?

OR in case this won't work try this:

http://example.com/xxx/yyy/?tmp=dummy&callback=?

Then on your server side get the value of callback and wrap your json with it.

I hope it will work out. Please let me know how you did solve the problem...

Thanks.

----
Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Jan 17, 2009 at 5:36 PM, Lay András <lays...@gmail.com> wrote:
>
> Hello!
>
> I'd like to use $.getJSON with JSONP support, but i used
> http://example.com/xxx/yyy URL sheme instead of
> http://example.com/index.php?a=xxx&b=yyy. I read in documentation, in
> the 'myurl?callback=?' syntax the ? replaces to the callback name. I
> tried this: http://example.com/xxx/yyy/? but don't works.
>
> I tracking the connection with FireFox's LiveHttpHeaders plugin, and I
> see jquery don't replaces ? to callback name, only send the
> http://example.com/xxx/yyy/? url without any change.
>
> How can I use JSONP support with this type of URL-s?
>

Reply via email to