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
2answers
19 views

JSOM Script Returning serverRelativeUrlOrFullUrl Error from SP.ClientContext.get_current()

I'm attempting to build a script for a Sharepoint 2013 project management hub that eases the process of spinning up and archiving project subsites as they are needed. I'm having trouble getting my ...
3
votes
0answers
31 views

Javascript Conflict on Visual Webpart when adding multiple times on 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 ...
1
vote
1answer
25 views

get list items in sharePoint 2013 for google charts api

I'm trying to use Google Chart API in SharePoint 2013. My list name is Utilization and I want to retrieve columns Title and Portal for making the 3D pie chart. Here is my code : <script ...
0
votes
2answers
38 views

Pop-up window to confirm

Where should i fit in a pop-up, using this existing piece of code? <td> <input type="button" value="Save" name="btnFormAction" onclick="javascript: ...
0
votes
1answer
21 views

o365 SharePoint Online .. Write to List on another site with Tenant (all sites) NAPA app? Forbidden Error

Is it possible to write to a list on another site from NAPA developed App on o365 SharePoint Online. I have a simple app that can write to lists on the host web by fully qualifying the list, but i ...
1
vote
1answer
22 views

Use REST API to get the current site collection

I have a list for links in my footer that I'm using REST to populate. $.ajax({ url: "/_api/web/lists/GetByTitle('FooterLinks')/items", type: "GET", headers: { "accept": ...
2
votes
1answer
38 views

Upload multiple files using rest api

I am trying to write code to upload multiple files using SP2013 REST API. I referred the MSDN article "upload single file using REST API". But I am having problem when I modified the code to upload ...
0
votes
1answer
31 views

Email Attachments as Individual Items in Document Library

There are many ways to receive this outcome, but they are not working exactly how I imagine. Issue: I created a document library and I have emails going into the library according to subject. The ...
1
vote
0answers
13 views

Get the current user and perform list ID lookup from result

I need to lookup the current user's login name, then use the result to get the ID of a list item that has a column containing that login name. I'm still brand new to javascript, so the code below ...
0
votes
1answer
24 views

CSOM Search Api error: Unable to get property 'ResultRows' of undefined or null reference

The code below is working fine in my dev machine but the moment I tried to test it on our customer's server, I started getting errors. I started having errors with SP.js. So I used the <script ...
1
vote
1answer
20 views

JSOM get_url of image null or undefined

I'm trying to get the url from an Image/Hyperlink field in a SP2013 List. My query works until I add in the request for Image data. Unable to get property 'get_url' of undefined or null reference ...
1
vote
0answers
27 views

Javascript to: get username, lookup id in list, then update list item

I have a pretty complex task I need to perform in Sharepoint, but I'm a total beginner when it comes to JavaScript! Here's what I need to do: I have a list on my site that is basically a database of ...
0
votes
1answer
66 views

Cannot run ajax javascript code

I try to run the below javascript code but it does not work. (it does not return the alert pop up) I put the url string into a browser, it return the item info. So, I assume the url is fine. And ...
0
votes
1answer
45 views

Strange Javascript error

I have got a Strange Error Javascript. How to find out whot is a problem. Please help: Here is my masterpage code: <%@Master language="C#"%> <%@ Register Tagprefix="SharePoint" ...
0
votes
1answer
17 views

How to display Search API results like SharePoint OOTB list with filtering, sorting, paging

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any ...
1
vote
1answer
26 views

Display CSOM search results like OOTB list with filtering and sorting

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any ...
4
votes
1answer
69 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
0
votes
0answers
26 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
15 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 ...
1
vote
1answer
25 views

Using csom search api, how can I search lists based on content types?

I have multiple subsites and each subsite has a list called "Articles". Each has two content types. "News Articles" and "Success Stories". I would like to search based on the content types above using ...
1
vote
2answers
59 views

Javascript get list items

What I am trying to achieve is using javascript to check if a user has created an item for the post. So it would check if post ID = current post and created by = current user. If it finds an item ...
0
votes
1answer
45 views

Please correct my javascript code

Please i need help with my script,I want my page to generate thumbnails directly being read from a share point list, below is the already existing code : <script type="text/javascript"> ...
0
votes
2answers
32 views

javascript event when a row is updated/changed in a Datasheet view?

Is there any way to catch update/changes in the Datasheet view of a list in JavaScript in SharePoint 2010? I see their are event receivers but nothing in Javascript.
0
votes
0answers
22 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
25 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
1answer
31 views

Manipulating SPClientPeoplePicker value

I would like to use the SPCLientPeoplePicker to generate a result set without manually typing into the people picker input field. I want to do this by javascript having the people picker control ...
0
votes
2answers
70 views

Can't get People Picker value on 'Edit' form load

When opening a SharePoint EDIT form, I'm trying to capture a people picker value using JavaScript. Unfortunately, the people picker isn't loaded with data when I call .GetAllUserInfo. I'm using the ...
0
votes
1answer
11 views

Own Title on hover - load other field

I have custom list named LIST1 with fields ID,Title,ShortComment,LongComment. I'am using view webpart , where only fields ID,Title,ShortComment are visible. Is there some way to show field ...
-1
votes
2answers
78 views

Can we use javascript to display attachment filename of a list item?

I just need the attachment filename of list item to display in a display page, not the link. Let's say List name: MyList and item ID: 1 When I try to use the ajax and I did some test. Somehow it ...
0
votes
3answers
36 views

CRUD Operations in Sharepoint Online using JavaScript on external site

I am currently trying to create a List Item in my SharePoint 2013 online environment using JavaScript Code on an external Website and domain. Basically I have no idea where to start and I am not sure ...
0
votes
2answers
23 views

Get data from a Sharepoint site for a web application

I would like to get data from the SharePoint site, but I don’t know if it is possible by using JavaScript or PHP or something else. After getting this and saving it in variables, I would do different ...
0
votes
0answers
29 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
15 views

How can I customize a Navigation?

I have a navigation bar that contains links to other parts of my site. It wasn't created by me initially, so I wanted to dismantle the script that customized it to see how it worked. I screwed up ...
0
votes
1answer
21 views

Getting error from display multiple selected external list item javascript

So here's the javascript I use to display item name of selected item from an external list: <script type="text/javascript"> var targetListItem; function ShowSelectedItems() { ...
1
vote
1answer
31 views

Copying all the field's value of a list to other list using javascript

This JavaScript code copies title field of one list to other list. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js"); var siteUrl = 'url'; ...
0
votes
0answers
20 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
0
votes
0answers
20 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 ...
1
vote
2answers
31 views

Get ID after inserting Item into SharePoint 2013 Host Web List

I am currently creating a SharePoint 2013 hosted app on Office 365 and I currently have some JavaScript that inserts item into a host web list. I wondering if it is possible to get the ID of the item ...
0
votes
0answers
35 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
33 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
1answer
24 views

How to authenticate a SharePoint 2013 REST API request from an HTML Application?

I am creating an HTML application that needs to access data from SharePoint 2013 List using REST APIs. eg - sharePointsite/_api/web/lists/GetByTitle('Test')/items. The HTML application is on a ...
1
vote
1answer
27 views

Set Like to folder (Video) from Javascript

Right now I get the information from a video like this: var ctx = new SP.ClientContext(siteUrl); var site = ctx.get_site(); var web = site.openWeb(webUrl); var folder = ...
0
votes
1answer
27 views

Get video item from list with Url with Javascript

right now I have the Url from a video item, that im showing in a Video native webpart, but i need to get the title and description for processing. For that, I only can use Javascript, so, I get the ...
1
vote
1answer
22 views

Best Practices for small changes from Quality to Production

I am at a new job, and how they manage development and then deployment to production is strange. So, I was curious what is the best practice for this scenario? A user just wanted a form field to have ...
0
votes
1answer
58 views

Using SPServices operation 'GetListItems' how to construct a CAML Query joining two lists?

Using SP2013 - JavaScript - $().SPServices() - operation 'GetListItems' - how would I construct a CAML query that will join two lists where list 'A' has a reference to list 'B' specifically having a ...
1
vote
0answers
21 views

Invalid JSON error while checkin of file on IE

I am facing an issue while checking in the file using REST API. The code below works Chrome Firefox and IE except the version 11.0.9600.17914. I tested it on my local IE version 11.0.9600.17905 and ...
0
votes
1answer
21 views

Hide Fields and Columns on SharePoint List form [duplicate]

I have a situation where I want to show/hide my SharePoint list column / Fields in a list form based on the value of some other field on the form. Example : I have 2 dropdowns say "IssueType", ...
0
votes
0answers
50 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..... $( ...
2
votes
2answers
56 views

How to set custom DIV error message using JavaScript

On Validation error of columns I would like to set a custom div with an error message. I currently have the working code to populate the div however I do not know how to make the IF statement to show ...
1
vote
1answer
27 views

SharePoint REST API Post date from Input value

I am currently developing a SharePoint 2013 app and I have ran into an issue. I have REST api that runs when the user tries to submit data, I have managed to get the Title field to submit the ...