<div class="row submit"> <?php echo CHtml::ajaxSubmitButton( 'Search', CController::createUrl('user/search'), array( 'update'=>'#ajaxUpdate', 'cache'=>true, 'beforeSend' => 'function(){ $("#ajaxUpdate").addClass("loading"); }', ), array( 'id'=>'search', ) ); ?> </div>
Using this, i'm trying to update div id #ajaxUpdate. Now when net connection is slow, or takes time to load the results, full screen hangs! What is the use, if i'm using ajax, to keep screen interactive and it is not achieved!
Please help me with some solution... what is making screen hang?