You need to sign in to do that
Don't have an account?
SS Karthick
Purpose of Visualforce Remoting
Hi folks,
Can anyone tell me the purpose of visualforce remoting and how use that?
Thanks in advance
Karthick
Can anyone tell me the purpose of visualforce remoting and how use that?
Thanks in advance
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
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
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
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)