Hi,
I am having issues with a "Dynamic Page" I load using addTabURL.
$tabs->addTabURL($this->api->url('ApplicationPages', array('app_page' => $page['page_name'],....));
The page is supposed to load a model based on some of the variables passed in the url and then create a form with submit button to update the model.
The first Tab's submit is working, but the rest of the tabs produce ajax error when submitted.
Application Error: js()->..->execute() must be used in response to form submission or AJAX operation only
<?php
class Page_ApplicationPages extends Page_ApplicationPage {
function init() {
parent::init();
$m_form_model = $this->add('Model_ApplicationPageGenericModel');
$f->setModel($m_form_model);
$f->addSubmit($_GET['app_page']);
if($f->isSubmitted()){
$this->js()->univ()->successMessage('success!')->execute();
}
}
}