Skip to main content
1 of 3

Call Javascript funktion in Magento Form

I have a Form in my Admin view with a small output "console". I want to update the content of the Console, while the form is submitted.

So here's my outputform.phtml:

getUrl('*/*/post')?>" enctype="multipart/form-data"> getFormKey() ?>" />

Senden

so after my form is submitted, the postAction() Method is called in my Controller.php file.

public function postAction() { $post = $this->getRequest()->getPost(); try { if (empty($post)) { Mage::throwException($this->__('Invalid form data.')); } catch(){} .............. }

Now i want to update the outputconsole of my outputform.phtml by calling a javascript function within the file. But how can i call it within the postAction() php method?

Thanks in advance