+ Start a Discussion

How to open the S-Control in the same window browser?

Hi all,
Please tell me how to open the S-Control in the same window browser? when click on button refer to that S-Control, It now alway open new window browser.
Anyone who know this problem, please help me.
Many thanks.
How is your SControl implemented? In other words, what is the Behaviour of the troublesome SControl? Unless you have specified "Display in new window" or you have some Javascript that causes the new window to open (with the "Execute Javascript" option), the new page should remain in the same frame.

If neither of these options solve the problem, could you please post some of the applicable code?

Message Edited by jpizzala on 11-23-2007 08:57 PM


My Javascript code in S-Control:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<body scroll="no" >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="FlexSalesforce" width="100%" height="100%"
<param name="movie" value="{!Scontrol.JavaArchive}" />
<param name="quality" value="high" /><param name="play" value="true" />
<param name="bgcolor" value="#f3f3ec" /><param name="allowScriptAccess" value="always" />
<param name="flashvars" value="session_id={!API.Session_ID}&server_url={!API.Partner_Server_URL_100}" />

<embed src="{!Scontrol.JavaArchive}" play="true" bgcolor="#f3f3ec" width="100%" height="700"
name="FlexSalesforce" align="middle"
loop="false" allowScriptAccess="always"

I have image link, when click this link it will call above S-Control, but It alway popup new window, I want it open on the same window.