Hello, I create a tab on the product, on tab there have a grid and a button, where add a data on the grid. but the button used the popup window, on the popup have 3 select data. I want when I click the button ok, there update the grid with the new info. I use this code:
Windows.close('widget_window');
new Ajax.Request(answerUrl, {
method: 'post',
onComplete: function(response) {
alert(response.responseText);
$('makelistGrid').update(response.responseText);
}
});
and the controllerproduct.php
public function customAction()
{
$this->_initProduct();
$this->loadLayout();
$this->getLayout()->getBlock('catalog.product.edit.tab.custom')
->setProductsCustom($this->getRequest()->getPost('products_custom', null));
$this->renderLayout();
}
but when there update the grid there show me no have info.
How can show me the update?