How to load content from external page using jQuery?

Posted by Pr0fess0rX on Stack Overflow See other posts from Stack Overflow or by Pr0fess0rX
Published on 2010-05-06T08:46:43Z Indexed on 2010/05/06 8:58 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

Hello, Is it possible to load content from an external page (not relative) into div using jquery? I mean here by external page is another web application like for example: http://www.yahoo.com There is the code:

$("#externalContent").load("http://www.yahoo.com", function () {
    alert("loading finish");
});

when I use firebug I got this result: Firebug result

you see here, i highlighted the response code, it's 200 which means OK, but still no content loaded. DOES anyone know the reason?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-load