function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
An image should appear as link and it should redirect to another visualforce page.
How can I achieve this?
<a href="/apex/vfpage"><apex:image id="theImage" value="{!$Resource.myResourceImage}" /></a>
This will work.
Or going with the standard visualforce tag,
<apex:outputLink value="https://www.salesforce.com" id="theLink">
<apex:image url = "imageurl">
</apex:image>
</apex:outputLink>
<apex:page ><apex:form ><apex:outputLink value="https://c.ap1.visual.force.com" ><apex:image url="https://ap1.salesforce.com/resource/13485470/Logo"/ ></apex:outputLink></apex:form></apex:page>
<a href="/apex/vfpage"><apex:image id="theImage" value="{!$Resource.myResourceImage}" /></a>
This will work.
All Answers
<a href="/apex/vfpage"><apex:image id="theImage" value="{!$Resource.myResourceImage}" /></a>
This will work.
Or going with the standard visualforce tag,
<apex:outputLink value="https://www.salesforce.com" id="theLink">
<apex:image url = "imageurl">
</apex:image>
</apex:outputLink>
<apex:page >
<apex:form >
<apex:outputLink value="https://c.ap1.visual.force.com" >
<apex:image url="https://ap1.salesforce.com/resource/13485470/Logo"/ >
</apex:outputLink>
</apex:form>
</apex:page>