Skip to content Skip to sidebar Skip to footer

Cakephp Ajax Form Submit Before And Complete Will Not Work For Displaying Animated Gif

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. submit('Sub

Solution 1:

Well. I finally got this working. The manual had no indication of this method but it works like a charm for prototype:

<?php 
echo $ajax->submit('Submit', 
  array('url'=> array('controller'=>'records',
   'action'=>'add'), 'update' => 'ajax_div', 
   'evalScripts' => true,
   'loading' => 'Element.show(\'busy-indicator\')',
   'success' => 'Element.hide(\'busy-indicator\')'));
?>

Post a Comment for "Cakephp Ajax Form Submit Before And Complete Will Not Work For Displaying Animated Gif"