'action' in CActiveForm with ajaxSubmitButton

Hey,

I have a CActiveForm widget that has ‘action’ set to some given $url. I then set up an ajaxSubmitButton. Now when I disable Javascript and the button is just the usual submit button, it works perfectly and the POST request is sent to $url. However, if Javascript is enabled, the submit button seems to ignore the ‘action’ value?

I’m writing because I suppose I’m missing something obvious here and wanted to get some feedback before I delve into debugging and creating my own button.

Thanks!

Lupin

OK, easy solution, set the url of ajaxSubmitButton… ;) Sorry. Still I wonder why this isn’t set to the value of ‘action’ by default but rather to the current URL?