开发者

equivalent of jQuery's "load" in prototype

开发者 https://www.devze.com 2022-12-22 19:15 出处:网络
I am trying to find an equivalent for the following jQuery javascript: var x1 = setInterval(function() { $(\'#status\').load(\"processor.php\", {value:\'name\'} );}, 5000 );

I am trying to find an equivalent for the following jQuery javascript:

var x1 = setInterval(function() { $('#status').load("processor.php", {value:'name'} );}, 5000 );

I need to use Prototype for other applications on the page, and when I throw both jQuery and Prototype libraries in there they will not cooperate.

T开发者_如何学Gohank you,


Prototype's Ajax function "periodical updater" is what you're looking for:

http://api.prototypejs.org/ajax/ajax/periodicalupdater.html

0

精彩评论

暂无评论...
验证码 换一张
取 消