I have a problem with the Ajax Indicator, I want to show it in div id=mark_xx, but i dont know how to do it. I tried this in _interested_user helper but the indicator.gif not appear there.
...
<div class="interested_mark" id="mark_<?php echo $question->getId() ?>">
<div id="indicator_<?php echo $question->getId() ?>" style="display: none"></div>
<?php echo $question->getInterestedUsers() ?>
</div>
<?php echo link_to_user_interested($sf_user, $question) ?>
and I put this in the helper function:
...
else
{
// didn't declare interest yet
$indicator = "'indicator_".$question->getId()."'";
return link_to_remote('interested?', array(
'url' => 'user/interested?id='.$question->getId(),
'update' => array ('success' => 'block_'.$question->getId()),
'loading' => "Element.show(".$indicator.")",
'complete' => "Element.hide(".$indicator.");".visual_effect('highlight', 'mark_'.$question->getId()),
));
}
...
any suggestion ?
