I"m using prototype I've tested ALL possibble scenarios, and my busy indicator WILL not show no matter what. I've cross browser tested no luck.
<?php
echo $ajax->submit('Submit', array('url'=> array('controller'=>'records', 'action'=>'add'), 'update' => 'ajax_div',
'evalScripts' => true,
'before' => $this->Js->get('#busy-indicator')->effect('show', array('buffer' => false)),
'complete' => $this->Js->get('#busy-indicator')->effect('hide', array('buffer' => false))));
?>
<?php echo $this->Html->image('ajax-loader.gif', array('id'=>'busy-indicator')); ?>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…