in my a.html i write this:
<script>
function Flike()
{ jQuery('#ft').load('like.php'); }
</script>
in the body of a.html i write
window.onload = Flike()
like.php is:
echo " <script> var e = document.createElement('script');
e.async = true;
e.src = '/facebook/like.js';
document.getElementById('ft').appendChild(e);
</script>
";}
Still now, All fine and works.
the problem is in like.js the script isn't work. this is like.js
I also tried without the document ready function... didn't work.