When i submit form ajax is not used. Javascript is enabled because this form is loaded to jquery dashboard widget. Is it possible that this is the reason of this problem?
Ok I know that it is because form is loaded to dashboard. Is there way to load javascript for ajaxButton/ajaxSubmitButton with form?
Unfortunately it do not help, i think it is caused by not including jquery.yiiactiverecord.js, and do not attaching onclick event to button when it is added to dashboard.
URL is not an issue, i have used CController::createUrl(), and it didn’t change anything. Issue is that it do not send anything when I use ajaxButton or works as regular submit button when i use ajaxSubmitButton.
I will heave to add content to widgets in some different way.
I will tell what I am trying to do, maybe it will help in finding solution.
I want to have submit form in jquery.dashboard (plugin | examples). It adds widgets based of JSON feed, each widget has several parameters like column id. Content is added based on url. So if I add to parameter "url" value "http://yiiframework.com" content of site would be paste to widget. I have created DashboardController and action which generates widget content (form for adding content).