You need to sign in to do that
Don't have an account?
My scontrol is not woking in InernetExplorer.(IE). But Works on Mozilla firefox
hi , i am trying to run this scontrol in IE. But i get sforce object is not defined.
here i am giving my code. please help me
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<SCRIPT
src="http://na1.salesforce.com/soap/ajax/8.0/connection.js"
type=text/javascript></SCRIPT>
<script language="javascript">
var opportunityStage = '{!Opportunity.StageName}';
var oppId = '{!Opportunity.Id}';
function init()
{
sforce.connection.init("{!API.Session_ID}","{!API.Partner_Server_URL_70}");
alert("login");
window.parent.location.href = "https://na3.salesforce.com/";
}
</script>
</head>
<body class="account detailPage" topmargin="0" leftmargin="0"
onLoad="javascript:init()">
</body>
</html>
Thanks,
Doug
Also, it is better to include relative URL instead of the full URL for connection.js
Instead of:
src="http://na1.salesforce.com/soap/ajax/8.0/connection.js"use this URI:
src="/soap/ajax/8.0/connection.js"
it could be the URL redirection... try putting "top" in front of it just to be safe:
Also... you may need to add "opener" in there depending on the situation, like so:
As you can tell, I'm a 'trial and error' type of guy :smileytongue: