そのようなことが可能かどうか知りたいです:
x$().xhr('<?php echo $this->createUrl('survey/index', array('id'=>$model->skey)); ?>', {
method: 'POST',
async: true,
data: urlstringserialize(serialize(document.getElementById("token-form"))),
callback: function() {respOK(this.responseText);}
});
x$().xhr('<?php echo $this->createUrl('survey/saveBrowser', array('id'=>$model->skey,'browser'=>$browser->getBrowser(),'platform'=>$browser->getPlatform())); ?>', {
method: 'POST',
async: true,
data: urlstringserialize(serialize(document.getElementById("token-form"))),
callback: function() {respOK(this.responseText);}
});
2 つの異なるコントローラー関数を順番に呼び出す必要があります。このようにして、最初のものだけが実行されます。