Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ahsanranjha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ahsanranjha / SharePointSendEmail.js
Created Nov 28, 2017 — forked from BasantPandey/SharePointSendEmail.js
Send Email using SharePoint Rest API
View SharePointSendEmail.js
var Email= function(){
// Email Either email groupname or email address
var from = '',
to = '',
cc = '',
subject='My Email Subject';
this.options = this.options || {};
this.options['fromEmail'] = this.options['fromEmail'] || {};
this.options['toEmail'] = this.options['toEmail'] || {};
ahsanranjha / SP.ListItem.moveTo.js
Created Jul 4, 2017 — forked from vgrem/SP.ListItem.moveTo.js
The example demonstrates how to move list item into folder via SharePoint JSOM API
View SP.ListItem.moveTo.js
var listTitle = "Requests"; //list title
var itemId = 1; //list item id
var targetFolderUrl = "/Lists/Requests/Archive"; //target folder server relative url
var ctx = SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle(listTitle);
var item = list.getItemById(itemId);
ahsanranjha / gist:054bd95447dadb39b7dcef3afaacb3af
Created Jun 8, 2017 — forked from ichord/gist:9808444
demo of using pdf.js to extract pages to images
View gist:054bd95447dadb39b7dcef3afaacb3af
<script src=""></script><html>
Created using
Source can be edited via
<canvas id="the-canvas" style="border:1px solid black"></canvas>
<input id='pdf' type='file'/>
<!-- Use latest PDF.js build from Github -->
You can’t perform that action at this time.