Tag Info

Hot answers tagged

3

You can, however it'll require adding code to the parent page and utilizing window.postMessage(). You will have to add an event listener on the parent page to listen for the message, and then open the dialog: window.addEventListener("message", receiveMessage, false); var receiveMessage = function(event) { if (event.origin !== "your app") return; ...


1

Try this code. It assumes the WebPart title is the ID in the DOM var pageWPArray; function () { for(var i = 0;i < webPartDefs.get_count();i++) { var webPartDef = webPartDefs.getItemAtIndex(i); var webPart = webPartDef.get_webPart(); pageWPArray.push(webPart.get_title()); }); //Loop through your array of Web Parts you'd like hidden for (var i ...


1

If you are open to editing page in SharePoint Designer, then you can use following logic using JavaScript. Place a div tag around the web part <img src="MaximizeImage" id="webpartitleMaximize" onclick="Maximize()"/> <img src="MinimizeImage" id="webpartitleMinimize" onclick="Minimize()"/> <div id="webparttitle"> <!-- ...


1

You can save User data as below string[] userarray = a.CommaSeparatedAccounts.ToString().Split(',');; SPFieldUserValueCollection usercollection = new SPFieldUserValueCollection(); for (int i = 0; i < userarray.Length; i++) { SPFieldUserValue usertoadd = ConvertLoginAccount(userarray[i]); usercollection.Add(usertoadd); } ...


1

Picture Library Slideshow web part In SP2013, there is a check box Show Toolbar use that to hide next previous and pause control



Only top voted, non community-wiki answers of a minimum length are eligible