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
Alok_NagarroAlok_Nagarro 

Ajax Api from html

Hi,

 

I jst want to use ajax api in my html page, just want to make simple call like login and then query().

I included this api by using url like this....

 

<script language="javascript" src="https://ap1.salesforce.com//soap/ajax/20.0/connection.js"
type="text/javascript"></script>

 

And when i made a login call, it through exception, then i download the connection.js and included it locally but still got exception.

 

It is possible to invoke salesforce ajax api from html page that is not hosted any server (running localhost)?

 

 

Any help must appreciated

SuperfellSuperfell

The browsers same origin policy won't let you do this.