in reply to Invoking Jscript function without actionevent
You should never have to execute javascript on the server, instead you have to send HTML code to the client that invokes the javascript.