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
300 views

Javascript window.location.href not working

I am trying to redirect to another site (say www.google.com) from a SharePoint site. I tried using window.location.href and window.location.replace but it doesn't work. It adds the URL to current ...
0
votes
0answers
23 views

Re-direct New Form submission in SP 2013

I am trying to redirect a 'NewForm' submission to another page (not the default list view which is normal behavior). Code like what I've pasted below has worked in the past in SharePoint 2010. It is ...
0
votes
0answers
27 views

consuming html content of external web application into sharepoint masterpage

I could consume the content (html and css) of an asp.net application from another application with the following Jquery code(I used CORS) : $("#success").load("http://localhost:50710/ .round", ...
0
votes
0answers
16 views

Input in SP custom list if radioButton is checked

I have a radioButton, rdbMale . If rdbMale is checked, I want Male to appear in SP custom list. I have an usual column (Single line of text) in my custom list. <input type="radio" name="male" ...
0
votes
0answers
78 views

Access SharePoint using Claims Based Authentication with Javascript

I'm making a slideshow with all the news and all the information that I display is the news that is already on Sharepoint but I need to read it somehow. All I'm asking for is a good example code or a ...
0
votes
0answers
202 views

JS Link and CSR: How to use Default sorting/filtering and override header

I'm using JSLink to customize list views. I actually override the complete view,. Header, body and footer (because the default HTML code of Sharepoint is quite a mess and quite impossible to style via ...
0
votes
0answers
25 views

SharePoint datasheet view not working after adding angular app

I Implemented a custom button on my SharePoint page to toggle listview webpart view from normal view and quickedit view. but I'm getting the following error after I add angular app.
0
votes
0answers
76 views

multiple updates on same sharepoint list item from CSOM( javascript)

I have a list with a field Status(dropdown with some values), I am using default save functions javascript. The status field is grayed out to the users. In presave javascript function I want to ...
0
votes
0answers
70 views

How to create common javascript file for multiple views/pages?

I am working on MVC project where I have saveral number of views. In all the views I have pages like Index.cshtml, AddEdit.cshtml, ViewDetails.cshtml etc. Currently each of one these view has ...
0
votes
0answers
30 views

Connect to sharepoint web service with javascript

http://appsrv/pfa/_api/ProjectData/Projects?$select=ProjectName,ProjectStartDate,ProjectPercentCompleted This is the link that after you enter username and password return XML data, I need to access ...
0
votes
0answers
77 views

Sum up Values from Sharepoint List column

I have 4 columns with choice field type. Each column has 1,2,3,4,5 value . Now if I select value from each column and submit it should add up those number. If some other user login and do the same ...
0
votes
0answers
224 views

Javascript to add an “Add new Item” to Lookup fields on an Edit Form is not working in Chrome and Mozilla

The below javascript which creates a link next to a lookup field on a list NewForm or EditForm. It is working fine in IE and when lookup has more than 20 + values it is not working in Chrome as the ...
0
votes
0answers
69 views

Gridview search filter with paging

I've a grid view and I want to add search filter on it. This code works fine if the grid view did not have the paging in it. It is not working on paging. Please help me in below mentioned code. I want ...
0
votes
0answers
46 views

Node.js - SignIn to Sharepoint

After installation of Node.js on my SharePoint 2013 Enterprise Server, I get following error, when I want to connect to SP: I am using following code (main.js): var SP = require('sharepoint'), ...
0
votes
0answers
35 views

Pull Data Into Individual Web Part

I know what I would like to do, but I do not know how to search to find the best solution. I have a list of URLs on a list that link to stories. I do not want the user to see the entire list of ...
0
votes
0answers
37 views

Activating SharePointPlus

OK, I have inserted your SharepointPlus as well as jquery.SPServices-2014.02. here is my simple code- but what activates it? <html xmlns="http://www.w3.org/1999/xhtml" ...
0
votes
0answers
60 views

Date parsing from JavaScript works for Firefox, not for IE

I am trying to parse a date in my java-script code, which is working fine in Firefox browser but not returning correct results in IE. below is my sample code: var shiftDate=recordArrayItem[i][0]; ...
0
votes
0answers
38 views

Allow anonymous users to run a PURE Javascript that uses REST API 2010

I wanna run a query via REST Api 2010 on a Sharepoint 2013 Server, which returns the data in JSON format. The results should be displayed on a anonymous site after beeing processed via Javascript. I ...
0
votes
0answers
22 views

SharePoint Java Image Slider Script Fails in Newer Browsers

I have a Java script given to me that probably is 8 years old or more. It displays photos and text on a SharePoint 2013 home page, fading out to the next photo and text. It's similar to the SharePoint ...
0
votes
0answers
29 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
51 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
42 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
68 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
154 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
28 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
7 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
28 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
45 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
58 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
28 views

javaScript appendChild property

var selectOption2 = document.createElement("option"); // alert(selectOption2); selectOption2.value = results[i].Name; alert(selectOption2.value); ...
0
votes
0answers
134 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
103 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
34 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
51 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
24 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
48 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
64 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
60 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
72 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
106 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
40 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
117 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
47 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
53 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
35 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
73 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
540 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
56 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 ...