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
pallavi reddypallavi reddy 

how rest api call from javascript

NagaNaga (Salesforce Developers) 
Hi Pallavi,

User-added image Please see the above code, it should help you.
Also please follow the below link for more informatiom
https://developer.wordpress.com/docs/rest-api-javascript/
Best Regards
Naga kiran
bob_buzzardbob_buzzard
I would use the awesome ForceTK from Pat Patterson (aka Metadaddy) - this provides access to the REST API for a range of situations, such as Visualforce pages, hybrid mobile apps.

Its available at : https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit