Magento javascript object

byronoyster

New Member
in Mage_Adminhtml_Block_Customer_Edit_Tab_Cart, in the _prepareColumns() function they add a column for action, there you can see\[code\]'onclick' => 'return ' . $this->getJsObjectName() . 'cartControl.removeItem($item_id);'\[/code\]so i try to do the same with my custom module, \[code\]'onclick' => 'return ' . $this->getJsObjectName() . 'comentarioControl.removeItem($item_id);'\[/code\]but all i get is noticia_comentario_grid10JsObjectcomentarioControl is not defined error, so, where can i define that, i don't understandthanks
 
Back
Top