You need to sign in to do that
Don't have an account?
jthor@entransform.com
Using Apex to run javascript
Hi,
So I want to write a trigger so that when something get inserted to an object a parameter is passed to a method in my contoller. That methods then calls a javascript function defined in my visual force page and passes the parameter to that function. How can I call a java script function using a apex method in my controller? Is possible?
No, you can't call JavaScript from Apex Code. Triggers can be executed in a non-browser context, so Apex Code wouldn't even have a browser to execute JavaScript in.
All Answers
No, you can't call JavaScript from Apex Code. Triggers can be executed in a non-browser context, so Apex Code wouldn't even have a browser to execute JavaScript in.
dang ok thnx.