You need to sign in to do that
Don't have an account?

Ajax login
Is it possible to initiate a session using an existing session id?
It seems like the beta version of the toolkit allowed you to do that while the release version requires you to call login(username, password) before you can call the api using javascript.
I have a page on my own server that needs to interact with the API. I have the server url and the session id so I'd like to be able to use those to initiate the session. Will connection.js handle it? Do I need to set a certain javascript variable to my session?
Thanks!
It seems like the beta version of the toolkit allowed you to do that while the release version requires you to call login(username, password) before you can call the api using javascript.
I have a page on my own server that needs to interact with the API. I have the server url and the session id so I'd like to be able to use those to initiate the session. Will connection.js handle it? Do I need to set a certain javascript variable to my session?
Thanks!
Alternatively, I can also load the connection.js file from salesforce.com since I do have the right url -- na1.salesforce.com etc... (like I mentioned in my post)...
So, why do you suppose taht won't work? I must be missing something...
This is what I am trying to do:
I have a s-control loading a webpage from my webserver (using html/javascrpt, not php, so I need to use ajax api) On my page, I am trying to access a custom object, modify it, save it back. With the previous version of IE and Firefox, I can make it work by playing around with the security setting. However, with the new version of IE and Firefox, I get error loading it.
For IE, I get an "object error"
For Firefox, I get "TypeError: node.nodeName has no properties"
Any ideas?
How are you "loading a webpage" from your server with an s-control? Why do you need to do that? Can't you do everything inside the s-control?
If you're trying to do it with ajax, it makes no difference as to where the javascript code lives in terms of security...