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

REST Look-up Field Expansion (Members Unknown)

Trying to expand a look-up field, in a REST call, without knowing the member names. For example, I have a custom list with a People Picker field (Employee). I can retrieve the Title and ID fields via ...
0
votes
0answers
17 views

Request for JSON data from external server

I am trying to obtain JSON data from an external location that is not on my sharepoint server. I have tried different methods for this and ended up with no result. Below I will explain each method ...
0
votes
0answers
41 views

GetListItem SPServices don't retrieve data

i'm trying to retrieve data from Sharepoint using SPServices. I created a list called "values" with two field: "Title" (text field) and "values" (numeric field). I created a js file linked to a ...
0
votes
0answers
17 views

Get all the libraries in a site collection except default libraries

How Could I get all the libraries in a site collection but just the libraries created by users and not by the System? Using Javascript
1
vote
1answer
31 views

Render person with presence

How could I render a person with presence using JavaScript? Not in SharePoint result templates... I'm using REST and I'm getting the person from the web service
2
votes
1answer
27 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...
0
votes
0answers
17 views

Can I customize Alert Me setup dialog

I am working on SP2013 on-premise standard edition. When clicking "Alert Me" button on ribbon, the default SubNew.aspx form will be called. I need to customize the form a bit so that: When setup ...
0
votes
1answer
22 views

display HTML styling to a div using content templates and JS

I am busy working on creating a 'new and announcements' web part for a client using a 'News' list, a content search on a New content type, and displaying it using a display template and javascript. ...
0
votes
1answer
29 views

Add a “add Link” to a Content Editor Web part

I have used a Content Editor web part to display a scroll-down list of links. The code I use is similar to this: <select id="mySelect" jquery110205452414735412181="1" ...
1
vote
2answers
44 views

How to make the title column values to work as a link?

I am trying to make title column values to work as a link. I have used javascript as given below <html> <script type="text/javascript"> SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
0answers
14 views

Show Hide Div based on DropDown SharePoint Visual Webpart

I have a cascaded drop-down on my page that is being populated from SPList on site. Now Based on this drop-down's Selection i want to show or hide Div containing 4 more controls. If any one can help ...
1
vote
1answer
31 views

Getting titles of a list as a link

I am using javascript to get titles of a list. Now when I have to display these titles, I have to display it as a link. I am using the below code <html> <script type="text/javascript"> ...
0
votes
1answer
82 views

How to call javascript function when a new item is added to a specific list?

I would like to give user some notification with the ID of the item on status bar when a new item is added to a list, so far I got the javascript code for display text in status bar, but I don't know ...
0
votes
0answers
13 views

How can I display groups of term store children on a site?

Assuming I have a term store set up as follows: Category 1 - Category 2 -- Category 3 -- Category 3 - Category 2 -- Category 3 Category 1 - Category 2 -- Category 3 I have ...
1
vote
2answers
43 views

SP2013 javascript client object model - get server time

My client machine and server machine has time offset of 2:30 hours. So when I try to retrieve Date/Time field using JSOM, it gives time according to offset. oListItem.get_item("Modified"); So how ...
2
votes
1answer
63 views

How to add JQuery in CQWP web part

I have created custom CQWP web part in which i am sliding news contents. I have created structure for sliding contents. Now i want to add JQuery file reference in my CQWP web part but it gives error ...
0
votes
1answer
30 views

Group by field using jQuery

Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field. Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
1
vote
1answer
14 views

Accessing the OnSuccess event for AJAXRefreshView

I am doing a AJAXRefreshView on a particular site page after a button is clicked. The list in question is being refreshed however I am unable to apply some custom styles that have been applied to the ...
0
votes
0answers
24 views

Displaying limited length of text in multiline column in an announcement

I have an announcement with body as multi-line column. I want to display only limited number of text and then give a read more link there. Read more link is working but still I'm getting the complete ...
0
votes
0answers
16 views

Script editor Height issue

So im working in sharepoint 2013, using a script editor to embedded some code. The code is a tableau workbook. Here is the code and I will explain further: html> <head> ...
0
votes
1answer
24 views

How to read Data from App web and write data to a host web by making REST calls

my Question :How to read/copy Data(images folder) from App web and write/Upload data to a host web (Picture Library) by making REST calls with the cross-domain library. i have Created SharePoint ...
0
votes
3answers
46 views

Hide columns in display form based on a value

I have the below javascript to hide columns in New/Edit form: jQuery(document).ready(function($) { if ($("select[title='Column1']").val() == "Value1") { ...
1
vote
0answers
26 views

SharePoint 2013 set “Structural Navigation: Display only the navigation items below the current site” JavaScript

As the title says, I currently have JavaScript that sets the navigation, however it currently sets it too "Structural Navigation: Display the current site, the navigation items below the current site, ...
0
votes
1answer
35 views

Full-Calendar Js not showing events

I have created an html page in which i have palced the full-calendar code. the script retrieves data from my shareoint calendar list - "Room Reservation" using SP-Services. I am able to get the ...
2
votes
5answers
109 views

Javascript not applying to page

I have 4 sets of Promoted Links in a table. The idea being the top set show one of the others depending on which tile is clicked. I have slightly modified THIS SCRIPT to match my needs, but nothing ...
1
vote
1answer
54 views

How to Upload Images to SharePoint Online(Office 365) Picture-library using CSOM (Java Script)?

currently created Picture Library using csom on host Web in my last question, now trying to add some Images to that Library, So for that created Image folder into SharePoint Hosted App. how to achive ...
0
votes
0answers
26 views

How to get user profile properties when getting users in javascript CSOM in SP2013?

I download users like this, but the problem is I have to make 1 request to download all users, then 1 more request to download the properties of the users. So that's 2 requests. I want I specify the ...
0
votes
0answers
27 views

How to use CAML with CSOM for getting users in SP2013?

I want to get all the users in CSOM SP 2013 in javascript, but I don't want all users. I want to filter them by CAML. This is what I have so far which filters by first name is Tom, but the CAML is not ...
0
votes
1answer
26 views

SPListItem question

I am in the process of learning SharePoint. I am trying to write a simple function to change the selected value of a choice box in a list to approved. I am trying to follow some tutorials online but I ...
2
votes
1answer
81 views

How To Create a Picture Library in SharePoint Online(office 365) Using CSOM-JavaScript?

Currently I have created SharePoint Hosted App (Picture Slider) using Napa Office 365 Development tool. So far, I have created picture Library Manually, and now trying to create Picture Library using ...
0
votes
2answers
39 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
92 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
44 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 ...
4
votes
2answers
97 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
27 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
26 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
1answer
37 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
147 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
37 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
18 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
21 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
19 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
38 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
37 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
27 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
13 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
59 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
59 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
53 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
32 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 ...