Zend passing server url / parameter to javascript file

Sailorfuku

New Member
For my application I need to pass a parameter through zend to my exter javascript file.I need the server url in the javascript with the language parameter.my javascript is placed in /js/javascript.jsI've tried the followlayout.phtml\[code\]$this->headScript() ->prependScript('BASE_URL = "test";') ->appendFile('/js/javascript.js');\[/code\]javascript.js\[code\]var url = BASE_URL\[/code\]But my firebug console keeps saying that BASE_URL is not defined. Whatis the good way to do this?Regards.Nicky
 
Top