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
renurenu 

Migrating S-controls

I am migrating all s-controls from beta version to the latest version. I found that version 13 is the latest.
 
i changed AJAX toolkit from<script src="https://test.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js" type="text/javascript"></script>

to

<script src="/soap/ajax/13.0/connection.js" type="text/javascript"></script>

i am confused which code do i need to use to log into Salesforce.

currently i am using the following

sforceClient.init({!API_Session_ID}", "{!API_Partner_Server_URL_70}");

But i found in some documentation that this value should be changed from sforceClient to sforce.connection

If i completely removed the above statement, i am getting the error 'sforce undefined'.

My question is do i need to remove this [sforceClient.init({!API_Session_ID}", "{!API_Partner_Server_URL_70}");]

statement completely or should i change sforceClient to sforce.connection. Please respond

It would be great if any one can send me some documentation links which describes the migration with examples.

 



Message Edited by renu on 07-17-2008 01:12 PM
renurenu

I used all the ways and able to complete the code. When i try to save the record which calls this s-control,

a new window is getting opened. with the following info.

AJAX Toolkit Shell

Using bookmarklet version of shell: commands will run in opener's context.

null

null

What is this. i have no idea. Plz let me know what this means. Why is this window opened.

NaishadhNaishadh
no need to remove that. just add function and apex.js it will work fine