Delete sharepoint site group using powershall command
$spWeb = Get-SPWeb "http://trig161:1089"$spGroups = $spWeb.SiteGroups
$groups = ("Group1","Group2","Group3","Group4","Group5")
ForEach($group in $groups) {
$spGroups.Remove($group)
}
$spWeb.Dispose()
Get Server side data using jq
public partial class handlerPage : IHttpHandler{
bool IHttpHandler.IsReusable
{
get
{
return false;
}
}
void IHttpHandler.ProcessRequest(HttpContext context)
{
// throw new NotImplementedException();
System.Web.Script.Serialization.JavaScriptSerializer js = new System.Web.Script.Serialization.JavaScriptSerializer();
string ResultString = string.Empty;
List<CharEntity> Lst = new List<CharEntity>();
Lst = GetDataFromList();
ResultString = js.Serialize(Lst);
context.Response.Write(ResultString);
}
}
public List<CharEntity> GetDataFromList()
{
List<CharEntity> Lst = new List<CharEntity>();
for (int x = 0; x <= 2; x++)
{
Lst.Add(new CharEntity
{
TaskName = Task[x],
TaskValues=val[x]
});
}
}
function getChart(val) {
var ChartData = GetChartData();
}
function GetChartData() {
try {
var Task1 = new Array();
var url = "/_layouts/15/Igrid_Petronash/handlerPage.ashx";
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("POST", url, false);
xmlHttp.send(null);
var layerHTML = xmlHttp.responseText;
var msg1 = JSON.parse(layerHTML);
return msg1;
}}
Pupop window using
$("[id$=linkJobTitle]").live("click", function () {
var ItemValue = $(this).next('input:hidden[id$=hidden]').val();
//var siteURL=$().SPServices.SPGetCurrentSite;
try {
var Vi = "View";
var options = {
title: "Recording Detials",
width: 1150,
height: 900,
top: 500,
bgcolor: '#A3BECC',
url: "/SitePages/RecordingTask.aspx?Mode=" + Vi + "&ItemID=" + ItemValue
}
}
catch (e) {
alert(e);
}
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
// SP.UI.ModalDialog.showModalDialog(options);
return false;