hi i have call ajax in other page like this
<script type="text/javascript">
////////////////////////////////
//
// Refreshing the DIV FANBOO2
//
////////////////////////////////
function refreshdiv_fanboo2(){
// Customise those settings
var seconds = 1;
var divid = "fanboo2";
var url = "http://pickthefights.com/fanboo2/?id=<?php echo $idvar ?>";
// Create xmlHttp
var xmlHttp_two = AJAX();
// No cache
var timestamp = fetch_unix_timestamp();
var nocacheurl = url+"?t="+timestamp;
// The code...
xmlHttp_two.onreadystatechange=function(){
if(xmlHttp_two.readyState==4){
document.getElementById(divid).innerHTML=xmlHttp_two.responseText;
setTimeout('refreshdiv_fanboo2()',seconds*1000);
}
}
xmlHttp_two.open("GET",nocacheurl,true);
xmlHttp_two.send(null);
}
// Start the refreshing process
window.onload = function startrefresh(){
setTimeout('refreshdiv_fanboo2()',seconds*1000);
}
</script>
here is code from which i call
<script type="text/javascript">
refreshdiv_fanboo2();
</script>
<div name="fanboo2" id="fanboo2"></div>
now i want to run this javascript in this page
<SCRIPT language="JavaScript" SRC="<?php bloginfo('template_directory'); ?>/countdown.php?timezone=Asia/Kuala_Lumpur&countto=2020-01-01 00:00:00&do=t&data=WAWASAN 2020"></SCRIPT>
but this script is not working in ajax page this script is working in others please help me as soon as possible