PresidentDunn
06-29-2010, 05: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){
alert("=)");
}
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.
Thanks!
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){
alert("=)");
}
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.
Thanks!