Another Salesforce blog!!!

Salesforce, Apex


Apex Input File type validation using Java Script

<apex:page controller=”AttachmentUploadController”> <apex:sectionHeader title=”Visualforce Example” subtitle=”Attachment Upload Example”/> <apex:form enctype=”multipart/form-data”> <apex:pageMessages /> <apex:pageBlock title=”Upload a Attachment”> <apex:pageBlockButtons > <apex:commandButton action=”{!upload}” value=”Save”/> </apex:pageBlockButtons> <apex:pageBlockSection showHeader=”false” columns=”2″ id=”block1″> <apex:pageBlockSectionItem > <apex:outputLabel value=”File Name” for=”fileName”/> <apex:inputText value=”{!}” id=”fileName”/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value=”File” for=”file”/> <apex:inputFile onchange=”check(this)” value=”{!attachment.body}” filename=”{!}” id=”file”/> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel value=”Description” for=”description”/> <apex:inputTextarea value=”{!attachment.description}” id=”description”/> […]

Cookie Limitations

Cookie Limitations You should be aware of a number of limitations when using cookies. The first is that while all modern browsers support cookies, the user may have disabled them. In NN we can do this from the Preferences option on the Edit menu. The option to disable cookies is under Advanced on NN 4.x, […]