I'm making some calls with getJSON on another domain, and the callback is
not firing.
My code is the next:

var url = '
http://localhost:8080/cometd/cometd?message=%7B%22version%22%3A%221.0%22%2C%22minimumVersion%22%3A%220.9%22%2C%22channel%22%3A%22%2Fmeta%2Fhandshake%22%2C%22id%22%3A0%2C%22connectionType%22%3A%22callback-polling%22%7D
'

$.getJSON(url + '&jsoncallback=?', function() {
console.log(arguments)
})

And this is the response I get in the added script tag

[{"id":"0","minimumVersion":"0.9","supportedConnectionTypes":["long-polling","callback-polling"],"successful":true,"channel":"/meta/handshake","advice":{"reconnect":"retry","interval":0,"timeout":120000},"clientId":"fzmfrqm3f99vdrhow","version":"1.0"}]

Somebody can help me with this?

Thanks.

Reply via email to