In Prototype) I can show a "loading..." image with this code:
(在原型中,)我可以使用以下代码显示“正在加载...”图像:)
var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars,
onLoading: showLoad, onComplete: showResponse} );
function showLoad () {
...
}
In jQuery) , I can load a server page into an element with this:
(在jQuery中) ,我可以使用以下命令将服务器页面加载到元素中:)
$('#message').load('index.php?pg=ajaxFlashcard');
but how do I attach a loading spinner to this command as I did in Prototype?
(但是如何像在Prototype中一样将加载微调器附加到此命令?)
ask by Edward Tanguay translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…