Skip to content

Instantly share code, notes, and snippets.

View vikbehal's full-sized avatar

vikrant behal vikbehal

  • Infosys
  • Washington DC
View GitHub Profile
<!doctype html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</head>
<body>
<input type="button" id="btnGetDocuments" value="Get Documents" />
<ul id="allDocuments"></ul>
<script>
$(function()
https://code.jquery.com/jquery-3.4.1.min.js
https://<web-app>.domain.com/sites/<siteurl>/SiteAssets/jquery.formatCurrency-1.4.0.min.js
$(document).ready(function () {
$('#' + amount).formatCurrency();
$("#" + amount).blur(function () {
$('#' + amount).formatCurrency();
});
#Load SharePoint CSOM Assemblies : Begin
$CSOMAssembliesPath = "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\"
$ClientDllPath = $CSOMAssembliesPath + "Microsoft.SharePoint.Client.dll"
$ClientRunTimeDllPath = $CSOMAssembliesPath + "Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path $ClientDllPath -ErrorAction SilentlyContinue
Add-Type -Path $ClientRunTimeDllPath -ErrorAction SilentlyContinue
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
// Immediately-invoked function expression
(function() {
// Load the script
var script = document.createElement("SCRIPT");
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
script.type = 'text/javascript';
script.onload = function() {
var $ = window.jQuery;
// Use $ here...
setTimeout(function(){