prototype.js之Ajax.PeriodicalUpdater详细用法
Code:
Comments Feed:
Trackback:
<script type="text/javascript" language="JavaScript">
function fetch(url,pars,tag,methtype)
{ var myAjax = new Ajax.Updater(tag,url,{method: methtype,parameters: pars,asynchronous: true,evalScripts: true}); }
function fetchupdate(url,pars,tag,methtype,interval)
{ var myAjax = new Ajax.PeriodicalUpdater(tag,url,{method: methtype,parameters: pars,asynchronous: true,frequency: interval}); }
</script>
and I load these with (as an example):
fetchupdate('/includes/header_embed.php','','header_embed','post',2.0);
Comments Feed:
Trackback: 正在读取相关评论....
Post Comment





