Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

0
votes
0answers
27 views

sharepoint user profie picture

I have created an app part that collects the current user profile picture function GetCurrentUser() { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + ...
0
votes
0answers
165 views

ULS logs filling up with Error: Failed to get document content data

Our Sharepoint farm's homepage constantly generates these "High" log items, making other debugging difficult. As far as I can tell, it doesn't acutally cause any problems. Error: High - Database ...
0
votes
0answers
46 views

Lookup columns with JavaScript

I have two lists with one column that is a lookup column. How can i bind the two lists together with JavaScript or can i retrieve the data from both lists with the lookup column and JavaScript? Or ...
0
votes
0answers
30 views

Code Break Down Help: Start SharePoint Site Workflow btn OnClick

I'm rebuilding a project and I just need help following the previous developers code as I'm new to this. I am aware that this is the GUID for the site workflow: 554AAB6B-5318-4106-BA40-E7336FCE029B ...
0
votes
0answers
14 views

save a sub-site as a template with content and update URLs when adding/importing

I have a sub-site with: a document library with some JS and HTML files a document library that I've added a webpart to in the EditForm.aspx and DispForm.aspx -- the webpart references one of the ...
0
votes
0answers
37 views

Retrieve direct reports to a manager in a SharePoint 2010 list

I need to design a SharePoint(2010) list which automatically retrieves direct reports of a manager and populate them in a drop down and when any of the employee/direct report is selected in the drop ...
0
votes
0answers
77 views

CoreInvoke createNewDocumentWithRedirect2 withOut redirect to edit page

How can i use this js code with out redirect to another page after buttonOk pressed ? CoreInvoke('createNewDocumentWithRedirect2', event, '/sites/OAA/test1111/Forms/Document/Doc111111.docx', ...
0
votes
0answers
21 views

Modify People Picker Located in IFRAME on WebPage

I am new to SharePoint and need some assistance. I have a webpage written in normal HTML and JavaScript with an IFRAME that contains a SharePoint page. When the webpage loads, it contains the user's ...
0
votes
0answers
6 views

NamedItems show in a div element

Usually i am working with NamedItems in a WebPart to show them on SharePoint. But I would like to show NamedItems (from a Excel) in a div element with JavaScript or any other language on Sharepoint - ...
0
votes
0answers
21 views

Javascript search code really slow in external page only when loaded in SharePoint

A while ago my supervisor asked me to build a tool to display some information from our ERP system. The ERP system is not that great, and often it is easier to just hack together a CGI script to ...
0
votes
0answers
28 views

Check whether user is active or inactive in Active Directory using REST API or JSOM?

How can I check whether user is active or inactive in Active Directory using REST API or JSOM ?
0
votes
0answers
16 views

SharePoint 2010 Search Results Per Page not exact

I have a page set up with a People Search Core Results webpart on it. When I set the 'Results Per Page' display property to 50 it doesn't show 50 results. It shows 44 or 46 or 48 or some other number. ...
0
votes
0answers
39 views

Passing Query string from SharePoint site to app part

I am trying to pass Query string from sharepoint page to an app part. I have followed ...
0
votes
0answers
26 views

javaScript appendChild property

var selectOption2 = document.createElement("option"); // alert(selectOption2); selectOption2.value = results[i].Name; alert(selectOption2.value); ...
0
votes
0answers
88 views

sp.listOperation.Selection.getSelectedList() returning null

I am trying to enforce Drag and Drop documents to apply metadata, I've looked at this question from a year ago and the answer by @Mx. really helped, it's working perfectly on my .AllItems page. But ...
0
votes
0answers
79 views

Create new OneNote notebook from template with filename using JavaScript

I'm currently in a use case that I need to create a new OneNote notebook on SharePoint from a template notebook. I'm coding in Java (web) and for the moment I have this code : ...
0
votes
0answers
29 views

Get broken inheritance items via spServices (SharePoint 2010)

Is it possible to get all items of a list, where the inheritance is broken? There´s an additional property for items via CSOM (HasUniqueRoleAssignments), but my task is to write code which can fetch ...
0
votes
0answers
74 views

Retrieve list items with JScript/jQuery - reusable function isn't working as expected - SharePoint 2010

I'm having a bit of trouble creating a reusable function to get various data from SharePoint lists. I'm at a loss as to what to do - everything I've read/searched for implies this code should work, ...
0
votes
0answers
33 views

Javascript redirect page on load with XSL value

I am trying to get a display form to auto redirect to another page. Currently I am using location.replace() which works fine except that each item redirects to another item in a second list. The ID ...
0
votes
0answers
16 views

Refreshing the contents of a lookup drop-down

I have one list (let's call it "Services") that references another (e.g., "Customers"). Frequently, I have employees making a new item in Services, but they forget to add the Customer first. They ...
0
votes
0answers
37 views

Can't add custom javascript and list alert to my custom form

I have created a custom list using Visual Studio in SharePoint app. Then, I have created a custom edit form for it. It is working fine, but when I try to add a new custom javascript file in that ...
0
votes
0answers
37 views

Async webpart - the best approach to access outer data source from webpart

I've already tried to search the web but I always get to some point from which I don't know how to get further. I have a Visual web part which needs to load data from external sources (different ...
0
votes
0answers
40 views

Accessing azure hosted API with sharepoint online add-ins

Here is our situation. We have a sharepoint add-in that needs to obtain data from an api, this api in turn calls a WCF service to obtain the data. Both the api and the WCF service are hosted on ...
0
votes
0answers
45 views

Microsoft Sharepoint SPException error when using Email API

I am trying to use the SharePoint 2013 Email API and receiving a Microsoft SharePoint SPException code: -2130575251 The security validation for this page is invalid and might be corrupted... ...
0
votes
0answers
59 views

SP2013 - open URL link in new tab

already for a long time a´m looking for how to edit script below (from http://www.sharepointdiary.com/2011/02/sharepoint-link-list-open-in-new-window_21.html) or how to do it another way. The script ...
0
votes
0answers
37 views

Problems with Query Sting URL Filter when adding/editing Views

I have a page (A) containing multiple links with different query string URL's that are all directed to another page (B), where a query string filter web part takes the selected link's URL and passes ...
0
votes
0answers
98 views

Javascript Conflict on Visual Webpart when adding multiple times with different webpart properties on single page

What I am doing: I am retrieving list items from list using javascript as per visual webpart custom property. I have created a dropdown in webpart editor part from where I am getting site url. As per ...
0
votes
0answers
39 views

Cannot save edited file css/js under SiteAssets

For SharePoint development, we only use client side programming (Javascript). I am used to place js or css files under SiteAssets. I have problem with only one of my site. When we upload or copying ...
0
votes
0answers
36 views

SharePoint hosted app submit multiple items to list

I am developing a SharePoint 2013 hosted app and I currently have a 'repeating' table that is being cloned each time a button is clicked. I currently have three tables which all submit to separate ...
0
votes
0answers
33 views

CSOM Querying a second list based on ID from an array

I have created an Array loading list data in, then displaying the array using knockout data-bind in a table. The issue is I have a second list that is related to the first list that I also need to ...
0
votes
0answers
60 views

App for Office (Office Add-in) Web Page Possibilities

I am trying to develop a task pane add-in for Word. Everything online says that at a minimum, the add-in requires a web page, javascript file, and a manifest. Does the web page have to be done in ...
0
votes
0answers
419 views

Using d3 in sharepoint web interface

I am building a website for a research center under my university domain. I am trying to create a data-driven document, with autoupdate based on lists. Yet since server-side access to sharepoint lists ...
0
votes
0answers
53 views

Send meeting invite to Lotus Notes

Using jQuery ajax and SendEmail to send messages from SP to Lotus Notes. (Anders help me get it working in this thread)[SP.Utilities.Utility.SendEmail with additional headers [javascript] (Thank ...
0
votes
0answers
123 views

Javascript - How to get content of HTML of list items in SharePoint 2013

I want to create a PDF file which will contains information of all items in lists related to a specific itemID. So my idea is create an HTML array of that itemID, then post it to server and use ...
0
votes
0answers
45 views

JS Link with same exact code only works on some lists

I have tested the same code on multiple lists using JSLink and it only works on some lists. I am using the right path and the code is the same so why doesn't it work?
0
votes
0answers
104 views

Commit using JavaScript

I 'm looking for a solution to submit an item using JavaScript for a button already placed on the form like this..... $( ...
0
votes
0answers
94 views

SharePoint online : Add a property in property bag of host web using JSOM

I am working on a simple SharePoint hosted app which has two text boxes to take input KEY and VALUE and add this to the property bag of the HOST WEB. I am able to read the existing properties from the ...
0
votes
0answers
60 views

SharePoint 2013 - Verify Active Directory security group membership in Master Page javascript

I desire to add some JavaScript that will verify the current users AD security group membership. If a member of group 'A' the logic will redirect one way. If not in group 'A', but in group 'B' the ...
0
votes
0answers
17 views

How to reference and dynamically display documents based off of input on a form

I'm using Sharepoint 2013. I'd like users to be able to select a series of drop down boxes of categories and have a list of documents automatically filter based off those choices. I'd also like to ...
0
votes
0answers
73 views

SPService object is not loaded!

I am working on a script to fetch the user profile services and get the current logged in user. This was initially working on IE8 and not working in IE11. Now its not working in any browser, any ...
0
votes
0answers
49 views

Select2 in Sharepoint Application Page

Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List. On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11). On ...
0
votes
0answers
91 views

Enforce Drag and Drop documents to apply metadata (within folders)

I am aware of how to prompt for metadata when dragging and dropping files into a document library via this method. However this does not appear to support folders. If a document library contains ...
0
votes
0answers
17 views

How to Track Silverligt video streaming length percentage in SharePoint 2013 using JavaScript

I want to track how much of a video's length is watched on Pause and Stop. How to track Silverlight video streaming length percentage (%) in SharePoint 2013 using JavaScript?
0
votes
0answers
62 views

How to Check if a Sharepoint user is in a security group no matter if this is in a AD group CSOM Javacript

I have a Sharepoint hosted app and I need to check if the current user is in a sharepoint security group no matter if this is in a AD inside the group, the following code check if the user is in the ...
0
votes
0answers
86 views

SharePoint 2010: How to add permission to a folder with JavaScript

I'm trying to create a folder in SharePoint 2010 Library with some modification of the permissions. I would like to remove one group from folder permission (inheritance from library permissions) and ...
0
votes
0answers
52 views

Using JavaScript to create a custom form for a calendar list

I'm designing a device reservation tool on our laboratory's SharePoint site. I created a wiki-page showing all information of the respective device as well as a calendar for the device that shows ...
0
votes
0answers
61 views

how to get client context in a external js file

I have a SharePoint event list where start date and end date needs to be formatted to clients time zone. I am thinking of getting the regional settings and then converting the time. I have to write ...
0
votes
0answers
288 views

How to retrieve webpart xml-definition programatically

I have a Custom Webpart deployed in the Site, to which I need to retrieve the XML definition programmatically using Client side object model, can anybody help? EDIT: I used the following code. ...
0
votes
0answers
55 views

'SP.ClientContext.get_current' is null or not an object

I have created a javascript script ih the Home.aspx of sharepoint foundation 2010 (exactly in a web-content editor). I keep on getting always the same error:'SP.ClientContext.get_current' is null or ...
0
votes
0answers
45 views

Create Web Property in Web Property Bag in SharePoint Site using REST API

I want to add one Web Property to sharepoint sub site using REST API. Is it possible or feasible using REST API?