Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3755 closed bug (invalid)

getJSON prefixes current page url

Reported by: buaziz Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: jsonp ajax Cc: buaziz
Blocked by: Blocking:


hi am using jQuery.getJSON to request a cross-domain page using the following code

jQuery.getJSON(crossDomainUrl, function(result) {



but i never reach the cross domain url as the current url is always prefixed to it, like so

Current Page Url : http://localhost/page.aspx Cross Domain Url : http://remoteServer

getJSON final request url is : <i>http://localhost/page.aspx</i><b>http://remoteServer</b>

so i always get a 404 error

can you please tell me why is this happening


Change History (1)

comment:1 Changed 14 years ago by flesler

Cc: buaziz added
Resolution: invalid
Status: newclosed

Check this page. You need to add "?callback=?" to the end of the remote server url.

Note: See TracTickets for help on using tickets.