function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SS KarthickSS Karthick 

Purpose of Visualforce Remoting

Hi folks,
       Can anyone tell me the purpose of visualforce remoting and how use that?


Thanks in advance
Karthick
Best Answer chosen by SS Karthick
vikram fartyalvikram fartyal
Karthick,

Please go through with this link, i hope it will make sense:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm

All Answers

vikram fartyalvikram fartyal
Karthick,

Please go through with this link, i hope it will make sense:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm
This was selected as the best answer
sweetzsweetz
Visualforce javascript remoting provides the ability to invoke apex class method from javascript embedded in a visualforce page. This feature primarily be used to create richer and more interactive user interfaces that users will benefit from.
Further info on the topic 
https://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting_example.htm


https://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm

Please have  a look at remote objects also

http://clicksandcode.blogspot.in/2014/08/visualforce-remote-object-im-single.html



pbattissonpbattisson
Visualforce Remoting or Javascript Remoting allows you to define controller methods in apex and then call them using Javascript without the need to perform a form submission.

Whereas the apex:actionFunction tag allows you to call methods in controllers using javascript, it requires a form submission and allows you to select a re-render target but does not provide the ability to pass parameters in the function or use a callback method. Javascript Remoting allows you to pass parameters and receive a callback which is more in line with todays modern web applications and frameworks. It does however require you to write and understand Javascript.

If you have a page where you want to call a controller method, not send up parameters and write little javascript - use an action function. If you want to have a page that has some dynamic functionality which utilises javascript calls with parameters then use remoting. The remoting system is asynchronous and also under testing seems to be slightly quicker. The team at Sundog did a good quick wlkthrough here. (http://www.sundoginteractive.com/sunblog/posts/how-to-visualforce-javascript-remoting)