Friday, October 23, 2009

[jQuery] Re: cross domain getJSON nothing happens

I see what you mean...

I thought it was that simple...
So I should generate my json via a server-language (like php) and echo
that callback as in the post you refered?
I'll try that and keep you posted.

On Oct 23, 3:22 pm, MorningZ <morni...@gmail.com> wrote:
> "the strange thing is that if I don't use jsonp (by using the callback
> query), it works locally. But obviously won't work when in a cross
> domain environment. "
>
> It's not as easy as putting "callback=?" in the url.. you have to wrap
> the JSON you are generating in a function name so that jQuery can
> process it when it gets the response...
>
> cross domain jsonp absolutely for sure works, but you are not
> implementing it correctly... maybe show more code and what Firebug
> shows the response to be?
>
> On Oct 23, 9:50 am, jayQuery <xaudio...@yahoo.co.uk> wrote:
>
> > didn't help...
>
> > the strange thing is that if I don't use jsonp (by using the callback
> > query), it works locally. But obviously won't work when in a cross
> > domain environment.
>
> > On Oct 23, 2:37 pm, MorningZ <morni...@gmail.com> wrote:
>
> > > See if this reply i made yesterday helps you out at all
>
> > >http://groups.google.com/group/jquery-en/browse_thread/thread/1525b2d...

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate