A form is displayed using an ajaxLink.
That form is then submitted with an ajaxSubmitButton.
The first submit works perfectly.
The second submit does 2 POST requests with the data. The 3rd one does 3 requests and so on.
If you refresh the page everything works normal again the first request.
The ajaxLink looks like this:
CHtml::ajaxLink('Create Category', array('create'), array('update' => '#details'), array('name' => 'bCreate'));
It calls an action that does a renderPartial on a template.
The contents of #details is then replaced by a form that is submitted using an ajaxSubmitButton:
CHtml::ajaxSubmitButton($model->isNewRecord ? 'Create' : 'Save', $model->isNewRecord ? Array('create') : Array('update', 'categoryId' => $model->categoryId), Array('update' => '#details'), Array('name' => 'bSubmit')
There is more code involved (for refreshing the resulting list etc), but the problem persists without all that. So I don't think it's relevant to the problem.
I get the impression that a list is kept of all the previous POST URLs on the client side or something. They are all called upon each next request. Anyone has any ideas on this? I'm getting pretty desperate...
Thanks in advance!