Side navigation
#3755 closed bug (invalid)
Opened December 29, 2008 11:12AM UTC
Closed December 29, 2008 12:38PM UTC
Last modified March 14, 2012 10:28PM UTC
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: |
Description
hi am using jQuery.getJSON to request a cross-domain page using the following code
jQuery.getJSON(crossDomainUrl, function(result) {
processResult(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
thanks
Attachments (0)
Change History (1)
Changed December 29, 2008 12:38PM UTC by comment:1
cc: | → buaziz |
---|---|
resolution: | → invalid |
status: | new → closed |
Check this page.
You need to add "?callback=?" to the end of the remote server url.