以下は、Mac では動作するが Linux サーバーでは動作しない ajaxSubmitButton です。Linux サーバーのエラー コンソールでは、次のエラーが表示されます: 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',
)
);
?>
Firebug またはエラー コンソールからエラーをコピーすると、次のようになります。
SyntaxError: missing } プロパティ リストの後に https://www.mysite.com/assets/95062282/jquery.ba-bbq.js 行 853
Firebug は次のようになります。