You need to sign in to do that
Don't have an account?
Apoorva Sharma
Using values from javascript in apex class
Hi,
i have a requirement in which i need to get javascript variables in apex class.If anyone can help with a code example, I'd appreciate it.
i have a requirement in which i need to get javascript variables in apex class.If anyone can help with a code example, I'd appreciate it.
Best Answer chosen by Apoorva Sharma
Roy Luo
Assuming you have a controller, a visualForce page with some javascript. You may use an apex inputHidden control for controller data binding, then at the client side, just find the hidden field by Id to get or set the value.