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

Ajax Api from html



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=""


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


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