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
85 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
3answers
134 views

How to bind SharePoint:FormField with data coming from a string array on server side?

<SharePoint:FormField runat="server" ID="field_Domain" ControlMode="New" FieldName="Domain"/> I want to fill the formfield ...
1
vote
1answer
66 views

Access List items from two Lists

I need to show values from two different lists.There will be 2 column from List1 and another two columns from List2. Two lists are connected with look up column. Please help with JavaScript code for ...
0
votes
0answers
81 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 ...
1
vote
4answers
201 views

403 Error on REST/JSOM call within a form in SharePoint 2013

I try to update a ListItem in a (foreign) SiteCollection wihtin an edit form by CSOM. But I can't get it to work without getting a 403 error: cs.updateListItem = function(siteURL, listNameSTR, itemID,...
0
votes
0answers
33 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 ...
1
vote
1answer
155 views

How to get all items in SC with a specific content type using JavaScript

There are five custom lists in a site collection, all have same content type. I would like to get all items from those five lists using JavaScript. Is there a way to get all items from all lists ...
1
vote
1answer
35 views

Retrieving Constants from Server Side using Javascript

Is there a way to retrieve a constant from a Constants.cs file by using javascript? I can retrieve the my constant in my ascx page using Constants.Lists.DisplayName.MyList. I was wondering if I can ...
1
vote
1answer
257 views

Why doesn't CAML Query Get Data from a Column Name?

I have a custom list which I am pulling data from using JavaScript. However for some reason it does not pick up two columns when I call them by their name. I have to use console.log(collListItem....
0
votes
0answers
93 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 ...
1
vote
0answers
50 views

Problem loading panorama in SharePoint - redirect for image files [closed]

We have a panorama made with krpano that we would like to show in our SharePoint site. All the files and images have been uploaded, but when trying to run the panorama we get loading errors for the ...
2
votes
2answers
527 views

Getting the URL of second last visited page in SharePoint

I am able to get the previous page URL, but also I need to get the URL of the second last visited page. I have used the below code.. <script> _spBodyOnLoadFunctionNames.push("GetUrl"); ...
2
votes
1answer
36 views

SharePoint Content Search

I have a list with some fields. I want to create a search page for that List in which every keyword matching the data for any list item will be returned. How can I search content in SharePoint List ...
0
votes
0answers
267 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 ...
1
vote
0answers
38 views

plz correct my validation code [closed]

<html> <head> <script type="text/javascript"> function validate() { var product1 = document.getElementById("product").value; var description1 = document.getElementById("...
1
vote
0answers
31 views

Why isn't CAML Query Getting Data from a Column?

I have a custom list which I am pulling data from using JavaScript. However for some reason it does not pick up two columns when I call them by their name. I have to use console.log(collListItem....
0
votes
0answers
80 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 ...
2
votes
3answers
331 views

Loading javascript after all the rest calls are finished on the sharepoint page

Environment: SP 2013 on prem, team site with publishing feature enabled I want to call my javascript after the complete page is loaded. The page has some webparts that have some rest calls. So I want ...
1
vote
7answers
788 views

How to get People Picker ID using Javascript

Hi is there any way to get the People Picker value using Jquery / JavaScript? Currently we use title tag to get the id of our input fields values but people picker has only one generic title field ...
1
vote
3answers
371 views

How do I format a Date for my local region in a customised SharePoint Display Template

How do I format a date in a customised search Display Template to show the date in my Region rather than UTC. I use the following XSL in Content Query Web Parts to present the date in my timezone, ...
2
votes
1answer
95 views

Customizing item_CommonHoverPanel_Actions display template

I customized the item_CommonHoverPanel_Actions display template and added custom link to it. Whenever user clicks on the link he/she is redirected to another page. What i am trying to do now is to ...
0
votes
0answers
51 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'), ...
1
vote
0answers
52 views

Get the Checkbox checked status on submit button click in SP 2010 list form

Am using checkbox multichoice field in my newform.aspx and in presaveaction call am doing the below code: function PreSaveAction() { var dt3; var dt4; ...
1
vote
3answers
324 views

JSOM 2013 Get Item from List containing all fields

I'm trying to get a specific list item (by id) using JSOM and want to get all fields in this item. Though, for some of my fields I get the error that I need to request the field (which would be done @ ...
1
vote
0answers
53 views

how to add a link to a document using rest api

Please help me in adding a "Link to a document" using rest api to document library
1
vote
2answers
37 views

how to specify the content type while creating an item in sharepint list using rest api or javascript

I have to upload a link to document library using rest api by specifying the content type.
1
vote
1answer
64 views

Caml query for date range not working in ecma

Not able to get item collection by my CAML in date range, while able to get in simple CAML query. Please any body let me know what is the correct format of passing date string. function ...
0
votes
1answer
58 views

Add a CEWP WebPart to a New/Edit/Disp form using JavaScript

Is it possible to use JavaScript to add a CEWP to a [New/Edit/Disp]Form.aspx? The CEWP would point to an HTML file that is in a document library. I've got a normal SP list in SP 2010 that has a ...
2
votes
0answers
156 views

Sort ListView via Postback in JSLink file

I found out, that you can filter a list view in a JSLink File very easy by a postback: function filterList(ctx, filterField, filterValue){ __doPostBack(controlId, 'NotUTF8;__filter={' + ...
1
vote
1answer
465 views

editDocumentWithProgID2 in CSOM

I need to Open/Download Word or PowerPoint Document directly from Provider Hosted SharePoint App. We can perform easily in on-premise using editDocumentWithProgID2 Tried with getting CORE.js, SP.js ...
2
votes
0answers
105 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
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 URLs....
1
vote
1answer
48 views

Create an app from JavaScript file and Item List

I have a javaScript file that pulls info from a custom SharePoint list. I would like to use this setup on some of my other sites as well. How can I make a sharepoint app so that I can click and drop ...
0
votes
0answers
40 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" xmlns:mso="urn:schemas-...
0
votes
1answer
68 views

Using knockout in SharePoint for reading list items

I have used the below code for reading list items. But when I try to debug this code, the functions are not getting called.. 'use strict'; var hostweburl; var appweburl; function ...
0
votes
1answer
148 views

Create list item by restful

Code: function createListItem() { var item = { "__metadata": { "type": "SP.Data.listnameListItem" }, "Title": "testsetsetset", "...
2
votes
4answers
1k views

Load JavaScript from external file in a web part

In order to hide the title of the page, I have placed JavaScript in a Script Editor presently. I want to add this functionality to few other pages. Is it possible to save this JavaScript in an ...
0
votes
0answers
69 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
1answer
137 views

Get site url from list item sharepoint 2010 javascript

I have the following code and need to obtain the site url to form a hyperlink. How can this be achieved? Code prints out title but I cant get to the web url . I want the url of the site that the list ...
0
votes
1answer
152 views

Validating DatetimeFields in SharePoint 2010 List Form PreSaveAction Call

I want to perform a validation for today's date and user entered date in my custom list form's multiple datetime fields ReqstRecvdDate Field DueByDate field ReqstRecvdDate can not be greater ...
4
votes
1answer
231 views

Context menu not showing on right click

I don't understand how in SharePoint you can activate a right-click context menu on the rows of a list web part. I have two different pages. In each page I have 4 views. For some reasons (?) in page ...
1
vote
1answer
149 views

ISO DateTime to Local DateTime using javascript

I have a ISO DateTime string "2015-10-05T08:30:00" getting through REST request. Now I need to convert it into my local DateTime. The way I am trying var isoDateTime = new Date("2015-10-05T08:30:00")...
0
votes
0answers
39 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
1answer
42 views

sharepoint user profile properties Client Web Part

im trying to get user profile picture in my Cilent Web Part but I get a error massage (_spPageContextInfo is undefined). I'm useing REST API jQuery(document).ready(function () { ...
1
vote
1answer
268 views

List Web Part CSR issues when sorting/filtering

I'm experiencing an odd behavior using the Client Side Rendering (CSR) functionality of SharePoint 2013, with a standard List Web Part (LWP). Here the js code (referenced using the JSLink property of ...
0
votes
1answer
136 views

Create Tabs for SharePoint 2010 ListForms - newform and editform

I have one SP 2010 List having 77 columns and created the customnewform.aspx and editform.aspx using SP Designer.But its not user friendly,as user has to scroll down every time for reaching the 70+ ...
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 + "/_api/SP....
1
vote
1answer
27 views

SPService - GetItemList - How can I populate custom ListItems?

I have a custom SharePoint list and want to get all items (title, kpi, delta) populate in a html site - I am using SPService with getitemlist. For Title its working fine, but for kpi and delta the ...
0
votes
1answer
43 views

is it wrong to use “min-Width:105%” & “max-Width:105%” to expand my list views on small sized screens

I'm working on a Team site inside SharePoint 2013, and I've defined many issue tracking lists. and for all these lists I'm showing the Description field (which is of type Enhanced Rich Text) inside ...