1

I am using the code below to load a blogspot article dynamically into a div but I have no chance to make it work. i want to load only BlogSpot articles. other pages loaded normal

Can anyone help me out?

Here is my code:

Before close head tad:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> 
<script type="text/javascript">

jQuery(function(){  

jQuery('#pagecontainer').load('http://thesecretrealtruth.blogspot.com/2013/07/blog-post_9623.html', function(){alert('Content Successfully Loaded.')} );


});
</script>

In the body tag:

<div id="pagecontainer" style="width:300px; height:250px;"></div>
m4tx
  • 4,060
  • 5
  • 34
  • 61
Irene T.
  • 1,353
  • 2
  • 18
  • 38
  • Read this: http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy – Zim Jul 11 '13 at 17:27
  • Add a PHP file to your server and use curl to get the article. Use Ajax to load your PHP file. – putvande Jul 11 '13 at 17:41

1 Answers1

0

You cannot load contents from another domain. More information here

Vaishak Suresh
  • 5,535
  • 9
  • 39
  • 64