How to call a Server side function from a Javascript?
Content
We have a custom Widget placed on a HTML page which has a Save button. On click of Save, a server side function (that accepts some parameters) needs to be triggered to update the Contact record (corresponding to the Logged in Customer Portal user).
Currently the function is built as a Custom Controller code.
a. Is there a way to get the Logged in User's Email Id (or Login) in the Javascript code?
b. How can we call the Server side function though the Javascript that captures the "Save" action?
Request guidance on the implementation and related syntax.
Version
0