Posts

Showing posts from September 25, 2015

How to remove and Delete row from PageBlock table on VF page

<apex:page controller="Classname" sidebar="false">    <style> .Processing { position: fixed; background: url('/img/loading32.gif'); background-repeat: no-repeat; background-position: center; width: 100%; height: 100%; z-index: 1004; left: 0%; top: 0%; } </style> <apex:Form id="frmId"> <apex:actionstatus id="statusProcessing" startstyleclass="Processing"></apex:actionstatus> <apex:pageBlock id="blockTD"> <apex:variable var="delrowNumber" value="{!0}"/>  <apex:pageBlockTable value="{!lstofData}" var="objTB"> <apex:column headerValue="Action"> <apex:commandLink value="Del" style="color:red" action="{!delRow}" immediate="true" reRender="blockTD" status="statusProcessing" > <ap

Only Number enter in Input text on VF page

Using javascript you can validate only number will be enter in text box <apex:page> <script>    function numbersonly(e)         {              var unicode=e.charCode? e.charCode : e.keyCode;                if (unicode!=8 )             {                  if ((unicode<48||unicode>57))                        return false;                              }                   }                       </script> <apex:form> <apex:inputText value="{!xxx}" onkeypress="return numbersonly(event);"> </apex:form> <apex:page>   Sumit Shukla sumitshukla.mca@gmail.com skypeID: shuklasumit1 Mob:9711055997