.load() when getting remote content thats dynamically generated

.load() when getting remote content thats dynamically generated


I am using .load() to grab a remote div from an external site, the Jquery successfully locates and loads the remote DIV but not any of its content. I assume that the content of the remote div is dynamically generated/inserted since I get a DIV response without the internal content.

So, I assumed that the .load() function waited for DOM READY before actually getting and parsing the remote page, but it seems not. How can I tell my local .load(); to wait for ('document').ready(); on the remote site before getting the content?

http://jsfiddle.net/s3yyno0m/