返回日志列表

 prototype.js之Ajax.PeriodicalUpdater详细用法

[ 2006-03-15 11:16:47 | Author: corsak | 220.174.209.149 ]  Edit  Delete
Font Size: Large | Medium | Small
Code:


<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 Comments Feed:
UTF-8 Encoding Trackback:

正在读取相关评论....

Post Comment

昵 称:
密 码:
游客发言不需要密码. 扩展输入框
验证码:
主 题: 可选
内 容:
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
附 件:
选 项:



虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.