To use JavaScript remoting in a Visualforce page, add the request as aJavaScript function call. A simple JavaScript remoting invocation takes the following form. The namespace of the controller class. This is required if your organization has a namespace defined, or if the class comes from an installed package.