i think the $ajax->remoteTimer() is not working properly.. it doesn't
do anything.. can someone check
my code.. and see whats wrong.

---- uniquesubmit.thtml ---
<?php
 foreach($unique as $index){
        $_unique = $index['UniqueSubmit'];
?>

<div id="asdf">
        <span>
            <?php echo $_unique['timestamp']; ?>
        </span>
</div>
<?php
}
echo $ajax->remoteTimer(array('url' => '/report/uniquesubmit/',
'update' => 'asfd'));
?>

--- controller ---

<?php
class ReportController extends AppController
{
    var $name = 'Report';
    var $helpers = array('Html', 'javascript', 'Ajax');
    var $uses = array('UniqueSubmit');

    function uniquesubmit()
    {
        $this->set('unique', $this->UniqueSubmit->unique());
        $this->set('vol_ref', $this->UniqueSubmit->vol_ref());
        $this->set('can_ref', $this->UniqueSubmit->can_ref());
        return true;
    }
}
?>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to