A Pen by tristian o'brien on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
$certPath = "C:\Certs\TrisOfficePnP.cer" | |
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 | |
$cert.Import($certPath) | |
$rawCert = $cert.GetRawCertData() | |
$base64Cert = [System.Convert]::ToBase64String($rawCert) | |
$rawCertHash = $cert.GetCertHash() | |
$base64CertHash = [System.Convert]::ToBase64String($rawCertHash) | |
$KeyId = [System.Guid]::NewGuid().ToString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//just for the console | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type. | |
jQuery.noConflict() | |
//just for the console END | |
jQuery(document).ready(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//just for the console | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type. | |
jQuery.noConflict() | |
//just for the console END | |
var listurl = "http://sharepointsupport/smallsys/testscr/Lists/TestKnockoutCRUD/AllItems.aspx"; |
A Pen by Secret Sam on CodePen.
when you want to fake an ajax call, that's because your server's web service is just not ready yet, and whenever that web service is ready, switching back to it should cost nothing..
with jquery.ajax.fake
you simply write pure jQuery ajax call, with only one extra property fake: true
include jquery.ajax.fake.js
script into your markup, and create webservices.fake.js
to handle fake ajax calls
<script src="jquery.ajax.fake.js"></script>
NewerOlder