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,139
  • 5
  • 37
  • 61
Irene T.
  • 1,393
  • 2
  • 20
  • 40

1 Answers1

0

You cannot load contents from another domain. More information here

Vaishak Suresh
  • 5,735
  • 10
  • 41
  • 66