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
how can we fire an javascript function by clicking on outputfield??
Hi,
Use below code snippets as reference
------------ VF page -------------- <apex:page controller="clsforoutputfieldclick"> <script> function chekon() { alert('hello'); } </script> <apex:form > <apex:outputpanel id="counter"> <apex:outputField value="{!concc.name}"/> <apex:actionSupport event="onclick" rerender="counter" status="counterStatus"/> </apex:outputpanel> <apex:actionStatus id="counterStatus" onstart="chekon()"/> </apex:form> </apex:page> -------- Apex Controller --------------- public class clsforoutputfieldclick { public contact concc{get;set;} Integer count = 0; public clsforoutputfieldclick() { concc=[select name from contact limit 1]; } public PageReference incrementCounter() { count++; return null; } public Integer getCount() { return count; } }
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi,
Use below code snippets as reference
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.