ajax - Why can't I load Flickr.com using jQuery .load method? -
my html code is:
<!doctype html> <meta charset="utf-8"> <title>untitled document</title> <script src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <div id="abc"></div> <script> $('#abc').load('http://www.flickr.com/'); </script>
but in , there's nothing.
where error?
thank you!
the .load()
function uses ajax. ajax doesn't work cross-domain, why isn't working.
you can use jsonp retrieve flickr data: http://api.jquery.com/jquery.getjson/
Comments
Post a Comment