[jQuery] Re: cross domain getJSON nothing happens
> 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.
Yes. Something like:
<?php
header('Content-type: application/json');
$cb = $_GET["callback"];
echo $cb . "({ 'result': 'success' })";
?>
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home