Skip to main content

Bug Tracker

Side navigation

#5879 closed bug (invalid)

Opened January 20, 2010 06:52PM UTC

Closed January 20, 2010 09:56PM UTC

Last modified March 15, 2012 10:28AM UTC

Ajax Cross-Site load for HTML content broken

Reported by: avidmalone Owned by:
Priority: major Milestone: 1.4.1
Component: ajax Version: 1.4
Keywords: Cc:
Blocked by: Blocking:

I'm attempting to use the Ajax load function to load HTML from a different domain. When I attempt to do this, I'm getting the 'Access to restricted URI denied" code: "1012' error message in Firebug. I'm including sample code to demonstrate the issue. I've tried appending ?callback=? to the URL as I've seen suggested, but this doesn't appear to resolve my issue.



<script src="jquery-1.4.min.js"></script>



<div id="content"></div>

<script type='text/javascript'>

$(document).ready(function () {






Please note - I'm not really trying to load Google's home page as my content, I'm just using this as an example, since I can reproduce the problem using Google's home page.

Attachments (0)
Change History (1)

Changed January 20, 2010 09:56PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The web browser won't let you request arbitrary content from other domains using xmlhttprequest. The only type of cross-site requests allowed are scripts and jsonp. See the jQuery documentation and/or ask on for more information.