View Full Version : CakePHP Ajax remoteTimer not working in Firefox

06-29-2010, 06:26 AM
Hi everybody,

I am having trouble getting $ajax->remoteTimer working in Firefox. The following code works in Safari and Chrome (can't say about IE because I'm on a Mac!)

In game.ctp (layout):

echo $ajax->remoteTimer(array(
"url" => array("controller" => "Game", "action" => "getGameState", $game_id),
"complete" => "processGame(request, json)",
"frequency" => 1

In ajax.js:

function processGame(request, json){
In game_controller.php:

function getGameState($id){


What am I doing wrong? Like I said, it works in Safari and Chrome, but NOT Firefox. And yes, getGameState() is supposed to be empty for now.


06-29-2010, 05:39 PM
I assume its the ajax your referring to here? If it works for some, and not others, its a deficiency in the AJAX / JS code itself; the only PHP that may be modifiable is the creation of the JS itself.