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

How to get the total number of lists present in a site using javascript?

I have used the below code to do the same bt it shows some error in the alert.. <script type="text/javascript"> var siteUrl = '/sites/MySiteCollection'; ...
0
votes
2answers
35 views

Get User id from people picker client side

I have created people picker on client side using SPpeoplepicker.js. $("#peoplePickerDiv").spPeoplePicker(); Everything works perfect all user display in people picker and i can select multiple ...
0
votes
1answer
21 views

Get Image Url from column “EncodedAbsUrl” using CSOM

Currently creating a SharePoint hosted APP. I am trying to get image URL from Picture Library (Collection) with Column internal name EncodedAbsUrl using CSOM , I have picture lib Collection but not ...
1
vote
2answers
33 views

How to get all properties of all users in SharePoint 2013 Rest API?

I am using this code to get all properties for just myself (current user). But how can I change this so that I can get the same data but for all the users in SharePoint? var oldurl = ...
1
vote
0answers
13 views

SharePoint 2013 Search Center - Alternative for $includeLanguageScript?

Is there an alternative approach to loading the language resource files with $includeLanguageScript in SharePoint 2013 Search Center? Sometimes it happens that the file is not loaded fast enough, ...
0
votes
0answers
20 views

Calling codebehind method for javascript

i need to popluated a dropdonwlist in my Sharepoint app page. I wote a C# function for that. The Function should be called when a ModalDialog gets closed. In the callback function i change the value ...
0
votes
0answers
23 views

SharePoint:DateTimeControl DatePickerImage javascript

I need to get DatePickerImage control of SharePoint:DateTimeControl. I tried : document.getElementById('<%=DateDebut.Controls[0].ClientID %>') ...
2
votes
3answers
69 views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried "_api/SP.Utilities.Utility.SendEmail" and this is my code/ $.ajax({ contentType: 'application/json', ...
2
votes
1answer
27 views

Difference between SP.SOD.executeFunc & other methods

I am confused about the idea of SP.SOD.executeFunc and other ways of referencing JavaScript, like: SP.SOD.execute SP.SOD.executeFunc ExecuteOrDelayUntilScriptLoaded ...
2
votes
1answer
16 views

Relative JS file reference from a custom page

I have HTML page inside a folder in style library called: Employee.html, so the link is: /style library/MyProject/Employee.html, I have also JS file inside the same folder called Employee.JS, I added ...
1
vote
0answers
16 views

Change permission of the multiple items

I'm trying to conditionally change permission of the multiple items in SharePoint 2010 Forms Library. I've found the working code in MSDN ...
0
votes
0answers
15 views

Open XML SDK for JavaScript [on hold]

I am creating excel spreadsheet by using Open XML SDK for javascript. used below script to add spreadsheet data. Open XML SDK Javascript var table = ...
0
votes
0answers
16 views

SP.UI.ModalDialog.showModalDialog(options); refreshes browser and closes dialog

I have created a page which uses a REST call to get the DefaultNewFormUrl and then I am trying to pass this to the modaldialog but for some reason the modal fires, starts to load and then the entire ...
0
votes
2answers
34 views

How to save item into list only once?

I am trying save the below into list in SharePoint, but each item is getting saved twice. I need to save only once. What's wrong? function sumcalval() { alert("save function called"); var ...
0
votes
1answer
22 views

unable to get Image Slider Picture Library using CSOM

Facing Error Unable to Get List,Please Help Me currently tying to create SharePoint Hosted App(Image Slide) on my AppDev Site https://akki.sharepoint.com/sites/appdev I have Created Picture Library ...
0
votes
0answers
18 views

Why is init.js using a synchronous XMLHttpRequest?

Newer version of the Chrome browser are shouting warnings when the XMLHttpRequest object is being used synchronously. We all know that we must not block the main UI thread with unnecessary synchronous ...
0
votes
0answers
12 views

Chrome Ends Debugging Session

I'm writing a SharePoint 2013 application in Visual Studio 2013, and I have an issue debugging in Chrome. The standard setting appears to be that the VS2013 debugging session ends automatically if I ...
0
votes
1answer
36 views

How to use the CSOM SP.Publishing.Variations.getPeerUrl method?

In this code, I am trying to get the corressponding french URL variation. I am using this CSOM api https://msdn.microsoft.com/en-us/library/office/jj954403.aspx But I can't figure out how to use ...
0
votes
1answer
47 views

How to get Sharepoint 2013 variation URL?

I want to create a toggle button for variations, so that when I am on the en or fr page, and I click the button it takes me to the other page. But I can't just change the en to fr, for example, ...
0
votes
3answers
32 views

How to update list items using JavaScript Object Model in SP 2013

I am trying to update list item's value through JavaScript object model in SP 2013. When I call set_item('fieldname','mvalue'), it does not throw any error, but it fails to update. How to ...
0
votes
0answers
21 views

Freeze the header columns for list in SharePoint

I'm working with a piece of code that are supposed to "freeze" the header column so when user has to scroll down, the headers remain visible and the user know what he or she is looking at. I have ...
1
vote
3answers
34 views

How should I add JQuery on custom page layout for SP2013?

I am working on a SP2013 on-premise farm and try to create a custom page layout. There are some JQuery function I need it render on particular custom page layout but not other pages. <script ...
0
votes
1answer
29 views

How Can I Pull data out of a SharePoint list from embedded code on the same SharePoint Domain Using SPservices and Javascript/Jquery?

I am trying to pull data from a column in a list. The list is in the same domain as the page that I have embedded code in. Here is the code, I have removed several of the functions that do not have ...
3
votes
1answer
88 views

How to reference the Site Collection URL inside the src attribute

I added a custom script to my "Style Library" folder under a site collection. The site collection URL is http://servername/HR. So to reference the script inside my master page I wrote the following: ...
0
votes
0answers
35 views

Issue facing for Sharepoint online Authentication using javascript

Using the code functionality in the link Code to authenticate SharePoint online users using javaScript. I am facing an issue that- ajax call for Microsoft Login service which uses a soap request , ...
1
vote
4answers
65 views

Best practice location to deploy CSS/JS/image files

For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. ...
0
votes
2answers
41 views

Counting the number of times a Specific value appeared in a column of a list

I have a list with column status. Some of the items in the list are approved. I need to count the Total number of approved Items. I have to do this using javascript..
2
votes
1answer
50 views

Custom calendar display template / JS Link

I'm looking for a nice custom calendar. Display template or jslink, doesn't matter. Something like that would be awesome: http://deviprsd21.github.io/Calendario/index2.html Has someone tried to ...
1
vote
1answer
19 views

ModalDialog on Dialoge close run javascript

Hello Iam coding a Sharepoint Solution with a Application page. In this Page i created a ModalDialog to open when a Button is clicked. The Problem is I want to run java script when the Dialog is ...
0
votes
1answer
24 views

Customized list form vs javascript & html solution in SP2010

I have one requirement in which we have to enter the q1,q2,q3,q4 details for 3 consecutive years for three categories, that means total 36 fields. There are some other fields similar to this. So total ...
5
votes
2answers
226 views

Get UserData - JavaScript

As seen in the following picture, when I add a User-Filter to a page it allows me to choose the parameter to pass. In my case I used the Büro. How can I retrive this data from client using ...
2
votes
0answers
28 views

How to exclude TaxonomyFieldControl from spell checker

I have a page layout with a couple of TaxonomyFieldControls on it. When I run the spell checker in the ribbon the taxonomy fields are getting flagged with spelling errors. I don't want the taxonomy ...
0
votes
0answers
16 views

pop up info tab for custom list in sharepoint 2013

I am looking for a pop-up something like in the picture. (column info) Is it possible to use calculated column or Client Side Rendering for this kind of requirement. Anyone who have any idea ...
1
vote
0answers
31 views

JQuery does not work anymore when refresh the page SharePoint 2013

I want to change value of span by jquery (selecting by ID and CSS). The script works, but when I refresh the page, it does not work anymore. I want to change the value 0 which CSS is ...
0
votes
0answers
23 views

How to add events to Ribbon Buttons

I want to add custom actions to my save or check-in buttons when a page is in edit mode. The IDs from the buttons I want to add events: ...
0
votes
1answer
13 views

Custom property for people profiles

I have added 1 new property to people profile named "DepartementTest" and filled it out foreach user. I have added my new property to my custom display template. I have built a people-dictonary and ...
1
vote
1answer
28 views

How to get the List item Id in javascript while in the display form

Is there is a way to retrieve the List Item Id (ID) that you are currently viewing (Display.aspx from) in javascript. I have searched through ctx and the _spPageContextInfo but have not found any ...
0
votes
0answers
14 views

Set client side choice field to stored value via JSOM

I am using Angular on top of SharePoint for an application. One of the fields I have is a choice column. I am able to get the values and store them in SharePoint/accessible via REST in my create form, ...
0
votes
1answer
22 views

Unable to change a file's fields via REST

I've gone through quite a few blog posts, StackExhange/-Overflow questions, and also Microsoft's documentation, but I'm just unable to change the fields of a file via REST in Sharepoint running on ...
1
vote
2answers
25 views

Creating document set and setting values with REST/listdata.svc

I have a custom document set type and I want to create a custom button on a calendar that allows my user to click a day and create a new set for that day with the date already filled in. I've got the ...
0
votes
1answer
31 views

Unneeded display template js files loading

I have several search results web parts on my page that all use custom display templates. Upon doing some performance testing I'm seeing several js files being loaded that aren't needed and I'd like ...
0
votes
0answers
20 views

JS Link date and time field

I have an edit form with some columns are locked. One column (which is locked) is a date&time column. It will locked perfectly. But the show the result and cut the last 0. So from 16:00 will be ...
1
vote
1answer
32 views

Javascript Object Model SharePoint 2010 Item Level Permissions With Group

I have been trying for some time now to do something that should be simple using JAVASCRIPT CSOM in SharePoint 2010. I have working code that can break list item permission and add a user to an item ...
0
votes
1answer
23 views

Help JS Link Problem

I need please help by my JS Link problem. I want to lock a column in a form when it has a value inside. To do this I try this code. It works but when I click on save the value in the title filed will ...
2
votes
1answer
69 views

Modify list view column titles in a view without changing the list columns

I have a page that contains list view web part. I want to rename the column titles. I have used the following JS script, however it only shows if I click on it. Also, the id of the list view title ...
0
votes
0answers
33 views

JS Link View Overriding for date

I have a date column in my custom list. When i try to override the view of the field by using the TemplateOverride Function, my Javascript wont work on! The same problem occurs for Multiple Choice, ...
0
votes
0answers
12 views

How to target modal dialog when list is set to launch in dialog?

I have a script in a CEWP with a function that will open a modal form, with OK and Cancel buttons, when a list item is saved. When I have the list set to not launch forms in dialog, I can target my OK ...
0
votes
1answer
43 views

Get clicked item ID from list

I have a list with items. Each item contains a link to another page. If a user clicks on one of those items, the specific item should get updated with a date when he clicked it. Now I get a target ...
0
votes
2answers
27 views

ListItem.get_id() return “-1” after adding value in custom list

I am trying to add value in custom list of SharePoint using COM and Javascript. Code work file but i can't see any item added in list. also i got id of recently added item is "-1" This is my code. ...
0
votes
3answers
40 views

How can I get a userid with jQuery in SharePoint 2010?

I'm writing a custom form with HTML and jQuery so that I can then insert the captured information into a list, but I can't use the SPServices library. When I build the list using InfoPath, it ended up ...