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
tommytrantommytran 

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.
jpizzalajpizzala
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

tommytrantommytran

My Javascript code in S-Control:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head></head>
<body scroll="no" >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="FlexSalesforce" width="100%" height="100%"
codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<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"
flashvars="session_id={!API.Session_ID}&serverurl={!API.Partner_Server_URL_100}&mAction=PlotSingleLocation"
loop="false" allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</body>
</html>

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.