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
RakheebRakheeb 

what is the purose of javascript remoting in salesforce?

HI guys, can anyone  let me know about javasript remoting and advatages,where we need to use and give me the example of that.

Chamil MadusankaChamil Madusanka

Hi,

 

Javascript remoting is the process that provides support for some methods in APEX controllers to be called via Javascript. The @RemoteAction annotation is previously available as a Developer preview.You had to contact Salesforce.com support to enable this feature.

But With Summer '11,Visualforce now allows some methods in Apex controllers to be called via JavaScript.Your Visualforce
pages and Apex classes must be running at least API version 22.0.

 

Here is some example from my blog;

 

http://salesforceworld.blogspot.com/2011/06/javascript-remoting-for-apex-controller.html

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Chamil's Blog

 

Ankit AroraAnkit Arora

I agree with Chamil, and I also blogged this have a look :

 

http://forceguru.blogspot.com/2011/06/summer-11-features-part-2-javascript.html

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page