Skip to main content

Bug Tracker

Side navigation

#9503 closed bug (invalid)

Opened June 02, 2011 10:19PM UTC

Closed June 02, 2011 10:22PM UTC

jQuery .load() doesn't work when requesting urls out of the current domain

Reported by: Owned by:
Priority: low Milestone:
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Any time I try to use jQuery .load() function to retrieve content out of the domain I'm running my script from, returned status equals to "error" and error code for xhr is 0. If I change the request url to one in my domain it queries the info as expected.

Example code:

<div id="page">Loading...</div>
<script src="" type="text/javascript"></script>
<script type='text/javascript'>
	$(document).ready(function() {
		$("#page").load('', function(response, status, xhr) {
			if (status == "error")
				$("#page").html('Sorry but there was an error browsing for FirebirdOS: '+xhr.status+' '+xhr.statusText);

Thanks for your time.

Attachments (0)
Change History (1)

Changed June 02, 2011 10:22PM UTC by rwaldron comment:1

component: unfiledajax
priority: undecidedlow
resolution: → invalid
status: newclosed