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)

1
vote
1answer
24 views

ResetRoleInheritance problem

Im trying to reset a list's inheritance using javascript and Sharepoint 2010. Here is my code so far: <script language="JavaScript"> <!-- var vcms_currentCTX; var vcms_currentWEB; var ...
0
votes
0answers
12 views

Code for Spotlight Web Part

Working in SharePoint 2013 and not able to use all the cool (free) apps offered because of internet security reasons. I really like the Spotlight App (image below) so I am trying to create it without ...
0
votes
1answer
47 views

Approving the filtered values of list using javascript

I have a list, a list filter and two date filters(Start date and end date) in a page. First I have to filter list using this filters and then I have to approve whatever item are left in the list after ...
0
votes
1answer
18 views

Enumerating contents of 'context.load' JS object works but using 'getById' does not work

In my Office 365 App I have a simple functionality where it loads a library and then reads a couple of fields for all items in the library. Below is my sample code: (function () { ...
0
votes
0answers
13 views

Not getting [Object File] from a File Input HTML Control using JQuery in WebPart Custom Page

I am Using SharePoint Designer 2010 I have a file input control and a button as below: <input type="file" name="Resume" id="upload"></input> <input type="button" id="btnSave" ...
0
votes
0answers
21 views

Automatically schedule a page on publish - JSOM

i recently came across this link where the item scheduling is done using server side code Automatically schedule a page on publish I am looking for the javascript equivalent implementation of the ...
0
votes
0answers
12 views

Add sitecolumns to contenttype using csom sharepoint (loop)

I try to add a couple of fields to a content type. Sometimes I get the error: The object has been updated by another user since it was last fetched. What I've done (simple version): lets say ...
2
votes
1answer
42 views

Need to change the value of a drop down choice box

I have a list in sharepoint. One column is a choice box for pending, approved, denied. I need to create a method to approve all on the click of a button. I cant figure out how because it doesnt ...
0
votes
0answers
12 views

how to delete a sealed field

How can I use Lists.asmx?op=UpdateList and JavaScript to delete a sealed field? My code works to create/update fields. I used it to create a sealed field. Then later I'm trying to delete it but it ...
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
44 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
34 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
30 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
18 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
23 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
30 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
47 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
32 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
90 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
14 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
48 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
68 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
25 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
32 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
39 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
58 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
86 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
41 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
116 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
50 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
108 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
30 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
40 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
156 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
39 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
19 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
20 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 ...