Passing startcolor and endcolor to the highlight visual effect in Javascript Helper make the form to not call remote function but the form acts as a normal post, with page reload.
tested on firefox 2.0.0.6, opera 9, ie 6sp1
here is the php code:
<?php echo form_remote_tag(array(
'url' => '@gotoaction',
'update' => 'the_div_id',
'loading' => "\$('input').value = ",
'complete' => visual_effect('highlight', 'div_to_highlight', array('startcolor' => '#ff99ff', 'endcolor' => '#999999')),
))
?>
this is the generated html+js:
<form onsubmit="new Ajax.Updater('div_to_highlight', '/gotoaction', {asynchronous:true, evalScripts:false, onComplete:function(request, json){new Effect.Highlight('div_to_highlight', {endcolor:#ffffff, startcolor:#00ff00});}, onLoading:function(request, json){$('tag').value = }, parameters:Form.serialize(this)}); return false;" action="/gotoaction" method="post">