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

named image not in `workbook.getNamedItems()`

I need to be able to access an <img> after embedding my Excel dashboard into an html file. I have named the image in Excel, but it is not showing up in calls to ...
0
votes
0answers
4 views

update list from another list using ECMA/client object model?

I have eleven lists list1,list2,..list10.and listDup Now i want to update ListDup's SID column based on List1's SID . when the time of adding item in List1(List2,List3,..List10) i have to check sid ...
0
votes
2answers
23 views

How can I apply CSS to webparID?

how can I apply css to webpart ID. I have the following webpart: webpartid="5a399f4c-f605-409c-8e3c-55993af60c9a" I need to apply css only for this webpartID How can I do that? Thanks!
1
vote
1answer
14 views

jQuery script for new list item form only works in edit mode

Newbie question. With Sharepoint Online, on a new List I'm modifying the Default New Form and I've added a Content Editor web part. I've linked the Content Editor to a script file that I've uploaded ...
0
votes
0answers
4 views

SharePoint 2013 List Box view customize web part display

I am referencing a list in a web part on a SharePoint page. In that web part I am using the "Boxed" view. However, I would like to customize the way that box looks a bit. Some examples would be to ...
1
vote
1answer
22 views

How to retrieve all folders in a document library using java script or spservices

I have created one document library,in that library i created some folders. How can i retrieve all folders in a particular doc lib using java script.Any ideas?
3
votes
1answer
29 views

AJAX/Rest only returning 100 items instead of full list

On an onchange event on a select box (filtered lookup column where the value is the item ID) i make an AJAX call to auto fill certain fields on a form. This works great except for it only returns 100 ...
1
vote
1answer
20 views

list item not updating till refresh the page in Javascript

I have javascript to update the item title which loads while displaying the form(disp form), the item is updating fine but till i refresh the page only, not while loading the view item Here is the ...
1
vote
0answers
6 views

Correct usage of getListItemChangesSinceToken() in JavaScript

I'm working on a Sharepoint hosted App, that accesses List Data from the Hostweb as I outlined here: EventListener for List changes in Sharepoint Hosted app I want to use the ...
3
votes
3answers
38 views

How to force PDF to get downloaded

I have developed a Windows 8.1 App using HTML5 and Javascript which is accessing the List, Libraries and Files from my Sharepoint site. Everthing is working fine except one issue i.e. The PDF files ...
0
votes
0answers
27 views

SP.UI.ModalDialog.showModalDialog(options).I deployed to ClientWebPart.aspx i am getting error

I deployed to sharepoint office 365 ClientWebPart.aspx i am getting error Uncaught ReferenceError: RegisterModuleInit is not defined and Cannot read property 'execute' of undefined.the sharepoint ...
0
votes
0answers
30 views

SCRIPT1004: Expected ';' error in the browser

I am using this script to hide 'Edit' button from SharePoint ribbon on my custom webpart's ascx page and calling it in the page load: function hideEdit() { var edit = ...
0
votes
3answers
45 views

How can I create a column in SP list which represent current date?

How can I create a column in SharePoint 2013 which represent the current date. For example today is 02/09/2016 tomorrow should be 02/10/2016, 02/10/2016... and so on each day the date must be changed. ...
0
votes
0answers
28 views

Javascript popup

I am using the below code to create a pop for pages. When you right click and select print preview, the preview is of the page behind the pop up as well as the pop. Is it possible to just preview ...
0
votes
1answer
32 views

add/remove list UI - what does the data look like?

I have to retrieve data from a SP list using javascript. This list has got a field which is being set using an "add/remove list" (with add and remove buttons in between two listboxes, you know).. ...
1
vote
1answer
62 views

JSLink: Is it possible keep the default list view header with column headers for filtering?

I am rendering a view with JSLink. Rendering is fine but is it possible keep the default list view header with column headers for filtering? I have tried this code in my dev environment. Issues: ...
0
votes
1answer
23 views

How to apply a Date Filter on a list with JS

I have a Date Filter webpart connected to a List on page. I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are ...
0
votes
0answers
14 views

Ending a Nintex workflow using JavaScript [closed]

Hopefully someone has an answer out there and I am just unable to find it. My question is: Is there a way to end a Nintex workflow (on a list item) through the use of JavaScript? Points I've come ...
4
votes
1answer
36 views

How to detect if a Project is in edit mode with JavaScript

I uploaded a javascript with a web part to my Project Server 2013 environment, and included the web part in one of the project's PDP, which contains the following code: var $puidElement = $("[GUID='" ...
1
vote
0answers
21 views

Change image name before uploading it to SharePoint library using Javascript or Jquery(Not Drop Zone control)

I would like to change the name of the image before uploading it to SharePoint document library. Below is the code i have written when an image is uploaded using HTML upload control. When the image is ...
0
votes
2answers
32 views

iFrame shows no scrollbars

I have a simple iFrame within a content editor where I want to add SP content (dynamically via JS): This is working fine... <iframe id="VersionHistoryFrame" src="http://www.test.de" width="400" ...
3
votes
1answer
38 views

How to get selected user/group information on Edit Permissions page (editprms.aspx) using Javascript?

When manger would like to edit the permission level he will select the user or group from user.aspx for editing their permission level using Edit Permission button. It will show edit permission page ...
1
vote
0answers
14 views

Display 'Related Item' Field in a Task 'Edit' Form

Is there any way to display 'Related Items' in a task edit form? It's already available in the display form, but when you switch to edit, it drops off. Ideas?
0
votes
0answers
8 views

Refreshing a lookup field in modal edit form via client side javascript

I have a list (list "Project") that on edit of a item opens a modal dialog for editing (editProject.aspx) The Project item has a lookup field "Document links" which points to a custom sharepoint list ...
0
votes
0answers
30 views

Authenticate users to SharePoint 2013 on primise from JavaScript

I am trying to connect my mobile app to on premise SharePoint 2013 server. I have followed some of the blogs on authenticating using JavaScript but all of them are explaining to connect SharePoint ...
1
vote
1answer
20 views

Retrieve List/Library “Shared With” Users and Groups using Javascript

I can retrieve Shared With info from a SharePoint 2013 (On Premisses) List/Library (not an item) using Javascript? I thought it could be available through ...
0
votes
1answer
17 views

How to insert FavIcons to SharePoint list from different websites?

as you can probably read from the title, I want to populate a column in my SharePoint list with favicons from different websites depending on the url in the corresponding field entry. I would use ...
2
votes
1answer
28 views

SharePoint 2013 - How to query members/users of an Active Directory group?

I have written some JavaScript code to get all groups and their users with permissions to a SharePoint list. Beside SharePoint groups there are also AD groups with permissions. The Problem is, that I ...
2
votes
2answers
22 views

CSR Template PercentComplete with skale 10 times blocks range 10,20,30,40,50,60,70,80,90,100 only

I created new PercentComplete bar but how can I set percentage to only 10,20,30,40,50,60,70,80,90,100 alowed values? function percentCompleteEditFiledTemplate(ctx) { var formCtx = ...
0
votes
1answer
12 views

Building a To-Do List with jQuery and Local Storage

Hi i am working on a project to do task list where every thing work fine but i am not able to store data in list in following link data is store in var data = ...
1
vote
1answer
34 views

use SP.UI.Dialog on page load without ExecuteOrDelayUntilScriptLoaded

I know I can do this: ExecuteOrDelayUntilScriptLoaded(function() { SP.UI.ModalDialog.showModalDialog(..) }, "sp.js"); But I want to call SP.UI.ModalDialog.showModalDialog as soon as the page ...
2
votes
3answers
67 views

Changing A Lists row color based on a number

So I have a calculated field in my List view that gives the number of days from the contract end date - current date. I wrote the following script to change the color of the row if less then 90 or ...
1
vote
0answers
18 views

CSR View Fields dynamic with Field names from View?

I try one CSR file for all views but they Views have not all the same columns Is it possible to make Fields in TemplateOverrides dynamic with the Fields names in current View? ...
2
votes
1answer
32 views

How can I see what list items are in what folder?

I have some code that shows me all the items (files and folders) in a document library, but everything appears on the same level. How can I see which items sit in which folders? Currently the output ...
0
votes
0answers
13 views

Sharepoint & Javascript: Handling Access Denied Error with Open In Windows Explorer. Catch Always Executing

So I am trying to handle an error when I attempt to open a folder location in windows explorer from SharePoint. If the website is not in your trusted sites while in IE the browser will throw an Access ...
0
votes
2answers
19 views

Add list item using JavaScript request failed

I am trying to add a folder to a library on my site, however I am finding it extremely difficult to complete such a simple task. The function executes properly (no errors or exceptions) however the ...
0
votes
1answer
15 views

Join 3 lists initiating the join from the middle list

I need to join 3 Lists, but i have no access to the on-prem sharepoint to test my idea right now. So I hope anybody can tell me, if it's possible. I have Lists A, B and C. LookupFields are connected ...
0
votes
0answers
16 views

Easy Tabs in SharePoint 2010 & preservation of easy tabs for SharePoint 2013

I am looking into ways to implement easy tabs for the display of a master glossary for my team. I have a code but I am not sure where to put it either in the content editor web part or in the general ...
1
vote
0answers
20 views

Trouble uploading file to Document library using REST api and JSOM

So I have been trying for the last day or so to get code right to upload a file to a newly created document library based off a custom template. Based on my research I know I am getting all of the ...
0
votes
2answers
52 views

reference ctx.CurrentFieldSchema with 'this' unsafe in CSR code?

In how we must code examples on MSDN: https://code.msdn.microsoft.com/office/Client-side-rendering-code-0a786cdd I see var priority = ctx.CurrentItem[ctx.CurrentFieldSchema.Name]; Is it unsafe to ...
-1
votes
0answers
29 views

How to border-radius the entire page layout?

How can i border-radius the page layout I'am using bootstrap 3 i want the entire page layout to be border!. my current page is like this i want the page to be just like this: how can i do this in ...
0
votes
1answer
38 views

calculated column javascript css cewp

Embedding javascript into a Calculated column works well, such as in this case Using HTML to recalculate calculated column However, where the following code ="function setTaskID(TR){" &" var ...
0
votes
1answer
20 views

404 Missing jQuery in _layouts folder

I have been stuck for a while trying to find out what exactly the _layouts folder does for SharePoint and why it may be causing any script I write and attempt to deploy on the site to not work. They ...
1
vote
0answers
26 views

Custom Action not showing on Site Settings pages

I have a little (crude) javascript function that should add a javascript file to every page on my site using custom actions (including the subsites via a recursive function). It seems to work well on ...
3
votes
0answers
36 views

SP's JavaScript function to create pagination

SharePoint 2013 here. I need to create a pagination of results I get from an external web service. I want to use the look and feel of SharePoints pagination: Ideally I could call SharePoint's ...
1
vote
0answers
24 views

Accessing JavaScript libraries for basic tasks

I ran into an error while trying to gain access to the required libraries for JavaScript development. I copied this code straight from Microsoft's documentation, however when it is executed on my ...
1
vote
1answer
35 views

SP.Taxonomy.js TypeError: b.get_path is not a function

I'm trying to display the terms of a site but I can't create a instance of TermSession object. context = SP.ClientContext.get_current(); var taxonomySession = ...
1
vote
1answer
25 views

Modal Dialog: How to Disable Redirect on Save

I have a wiki page with a link on it which when clicked opens a modal dialog to a document set's new form page. When the Cancel button on the modal dialog is clicked, the dialog closes, as expected. ...
1
vote
1answer
17 views

EventListener for List changes in Sharepoint Hosted app

I'm developing a sharepoint hosted Add-in, which should react to a change of a list field of a list in the hostweb. I need some kind of EventListener for a list field. For example: List field Gets ...
0
votes
1answer
37 views

Adding List view web part to a page using javascript

In a page, I need to add a list view web part when the page is loaded. Is it possible using javascript? Actual situation is that a list has a column States. It can have multiple values. So in ...