Below is an ajaxSubmitButton that in working on a mac but not on a linux server. On the linux server Error Console shows this error: SyntaxError: missing } after property list
<?php
echo CHtml::ajaxSubmitButton(
'',
array('/modelA/action'),
array(
'type'=>'POST',
'success' => 'js:function(){window.location="/modelB/action"}',
),
array(
'id'=>'button',
)
);
?>
When I copy the error from Firebug or Error Console I get this:
SyntaxError: missing } after property list
https://www.mysite.com/assets/95062282/jquery.ba-bbq.js
Line 853
and Firebug looks like this:

You need to remove the ‘js:’ part in your code (before function) then it should work
So it will look like this: