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
AshiAshi 

Mobile App using Javascript/ JQuery

Hello,

 

I want to invoke OAuth service via Force.com REST API using JQuery ajax calls. I found something at: https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit and follwed the code snippet mentioned below "Using the Toolkit in an HTML page outside the Force.com platform".

I have included the forcetk.js in my application and refer to it. But the error which I get is : Could not recognize variable forcetk.

 

Can someone help me in this regards.

 

Thanks,

Ashima

MatthewBotos_MatthewBotos_

It soulds like the forcetk.js file isn't actually being loaded by the browser, and thus Javsacript doesn't recognize the command. Can you double-check the URL?

 

If you're looking to build a mobile web app using JQuery Mobile, the Mobile SDK Workbook has an excellent example that'll get you started quickly.