Showing posts with label javascript:;. Show all posts
Showing posts with label javascript:;. Show all posts

Friday, July 24, 2020

24 Jul

JavaScript : How to Convert UTC Date Time to local/EST Hours using JavaScript?

In this below script, Convert UTC Date Time to local/EST Hours In this article , we will use default java-script action Type 1: var localTime = new Date(); var localKolkata = moment.tz(localTime, "Asia/Kolkata").format("hh:mm:ss"); Javascript script provide date and time format. Type 2: function getLocalTime(i)...

Tuesday, April 26, 2016

26 Apr

Item Adding / Item Added Event Receiver for Document Library

In this below script, Item Adding / Item Added Event Receiver Ways to retrieve data are: Properties.ListItem[«FieldName »] Properties.AfterProperties[«FieldName »] Properties.BeforeProperties[«FieldName »] we must add the synchronization parameter  to our xml definition. <Receiver> <Name>EventReceiver1ItemAdded</Name> <Type>ItemAdded</Type> <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> <Class>TutoTaxonomy.EventReceiver1.EventReceiver1</Class> <SequenceNumber>10000</SequenceNumber> <Synchronization>Synchronous</Synchronization> </Receiver> In...

Saturday, April 9, 2016

09 Apr

Print css using Window.print() using pdf print

In this below script, Print css using Window.print <style type="text/css" media="print"> @page { size: auto; /* auto is the initial value */ margin: 0; /* this affects the margin in the printer settings */ } </style> @page :left { margin-left: 4cm; margin-right: 3cm; } @page :right { ...
09 Apr

Freeze header in SharePoint List 2013

In this below script, Freeze header in SharePoint List 2013 The stickyHeaders widget as part of the Sharepoint List . _spBodyOnLoadFunctionNames.push("stickyHeaders"); function stickyHeaders() {//-----------------------------------------------------------------------------------------------------------------------------------------------...

Thursday, March 31, 2016

31 Mar

How to Turn on Line Numbers In Visual Studio

In this below script, Turn on Line Numbers In Visual Studio Line numbers are not on by default.    Tools -> Options -> Text Editor -> All Languages -> General -> Display and check Line numbers: ...