Posts

Custom dialog box for SharePoint online

Image
Custom Jquery dialog box made easy Custom dialog box or popup functionality on SharePoint pages using JavaScript can be implemented very easily. Start with adding some space holder in your html to be the container of your popup. Copy the code from below: <html> <body>     <div id="divTermsParent">         <Div id="divTerms"></Div>         <br />         <button id="btnAccept" onclick="Response(1)">Accept</button>         <button id="btnDecline" onclick="Response(0)">Decline</button>     </div>     <a onclick="OpenDialog();">open dialog</a> </body> </html> Now you need to provide the java script to open the html as popup. For that you will use  SP.UI.ModalDialog.showModalDialog method. Please use the below code for opening the dialog box: ...

Interaction with UI from windows service

I nteract ion with UI from windows service Introduction Windows service has no UI and it has never been easy to prompt users with some notifications from windows service. To interact with UI from windows service, we used to opt, allow service to interact with desktop and by launching another process from the windows service. But it is not expected to work with windows vista and upwards. So now the question is how to implement this in newer versions of windows i.e. windows 8, windows 10 etc. Here is the answer: Display a dialog box in the user's session using the  WTSSendMessage function. It can be used to display messages from windows service on all supported windows operating systems. WTSSendMessage Displays a message box on the client desktop of a specified Remote Desktop Services session. Syntax BOOL WTSSendMessageA(   IN HANDLE hServer,   IN DWORD   SessionId,   LPSTR      pTitle,   IN DWORD ...

Code signing concept & implementation using installware software

Image
Code Sign In What is Code Signing? Code signing  is the method of using a certificate-based digital signature to sign executables and scripts in order to verify the author’s identity and ensure that the code has not been changed or corrupted since it was signed by the author. This helps users and other software to determine whether the software can be trusted. Purpose of Code Signing Because of the potential damage that an executable or script can cause to a computer system, it is important that users be able to trust code published on the Internet. Here are two important ways that Code Signing increases trust: ·        Authentication . Verifying who the author of the software is. ·        Integrity . Verifying that the software hasn’t been tampered with since it was signed. ·          What is a Code Signing Certificate? A code signing certificate allows you to sig...