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
shamushamu 

How To Display Image In S-Control?

Hi,
 
I'm very new to Salesforce/ApexDeveloper. Could anyone deliniate the steps involved to display an image in a S-Control?
 
Thanks!
 
Arnold
Bob1352Bob1352
Here's a sample

change the <img src=.......> data


<html>
<head>
<!--
    Autorización de retiros
    Creado por: Klaus Schmetkamp - VCS
    Propósito : Autorización de retiros
    Fecha de creación : 1/11/2007
    Última modiciación : 7/11/2007
    Versión : 1.0

-->
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Expires" content="-1">
  <title>Aplicaciones</title>

<script src="/soap/ajax/10.0/connection.js" type="text/javascript"></script>
<script src="template.js" type="text/javascript"></script>
<script src="{!Scontrol_JavaArchive}" type="text/javascript"></script>

<!-- Development purposes only -->
<script src="connection.js" type="text/javascript"></script>
<script src="offline_mode.js" type="text/javascript"></script>

<!-- Salesforce styles -->
<link href="https://tapp0.salesforce.com/css/ie_global.css" rel="stylesheet" type="text/css">
<link href="https://tapp0.salesforce.com/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet">
<link href="https://tapp0.salesforce.com/dCSS/Theme2/default/custom.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet">
<link href="https://tapp0.salesforce.com/css/assistive.css" type="text/css" media="aural,braille,embossed" rel="stylesheet">




</head>

<body class="custom customTab4">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
  <td>
  <div class="bPageTitle">
   <div class="ptBody secondaryPalette">
    <div class="content"><img src="/s.gif" alt="Home" class="pageTitleIcon"><h1 class="pageType">Custom Layout Example<span class="titleSeparatingColon">:</span></h1><h2 class="pageDescription"> Home</h2><div class="blank">&nbsp;</div></div>
   </div>
 
</table>
</body>
</html>
lee.boonstralee.boonstra
You can upload an image at the documents page. - When you uploaded this image, request by rightclicking it's image properties, for requesting its path.

Then write in your s-control the following code. And paste behind 'src=' the path to your just uploaded image:


Code:
<img src="/servlet/servlet.ImageServer—id=01520000000SpHJ&oid=00D2000000063fq&lastMod=1193649983000" alt="Alternative text" />


Message Edited by lee.boonstra on 11-08-2007 01:33 PM