+ Start a Discussion

How to pass values from javascript to Apex controller(Urgent)

Hi All,

We have one problem regarding passing values from JavaScript function to Apex controller. Let us know if anyone has solution.
Any help would be appreciated.


Try creating an <apex:inputHidden> component in your VF page. Then your JavaScript code can assign a value to that component. When your controller runs, it can pick up the value from there.

Message Edited by MJ09 on 03-01-2009 10:56 AM

Can you please explain with example?



Thanks in advance.


You can pass back javascript values with the apex param component. See this blog post.