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)

3
votes
1answer
41 views

How to query data on app web from host web

I need to query a list located inside a SharePoint hosted app, when located on host web, using JavaScript (REST preferably). I control both app and host. It's possible to communicate with an app ...
1
vote
1answer
44 views

HTML Webpart JavaScript works in EditForm.aspx but won't in AllItems.aspx

I have a HTML Webpart with the following code (piece): <script type="text/javascript" src="../../SiteAssets/jquery-1.12.0.min.js"></script> <script type="text/javascript" ...
1
vote
1answer
41 views

Temporary individual list or view for users

I want some kind of dynamically created List for every visiting user in SP 2013. The data lives in multiple lists and I want it to be aggregated in the target list/view. When a user visits the ...
0
votes
0answers
32 views

ContentType problem in JS after install of SharePoint Cumulative Update

After installing the SharePoint 2013 Cumulative Update of December 2015, i have a very strange issue in my SharePoint 2013 portals the situation before I install the CU (the farm was in SharePoint ...
0
votes
1answer
35 views

CEWP to set Infopath field value not working

I have an infopath form web part on my web page along with a CEWP. I'm using javascript in my CEWP to set a field on my Infopath form to some value when a button is clicked. For some reason I can't ...
3
votes
4answers
518 views

Javacript only executed on first page load

I have javascript code included in my sharepoint site. When I load the page the first time, it is executed, but when I load it the second time, it is not running. It get's loaded in correct order but ...
0
votes
1answer
18 views

Increase Font Image Mouse Over [closed]

This may not be possible without jQuery ToolTip, but I want to try. Scenerio: I would like to increase the font size in the description located in the mouse hover whether it's a image or a list ...
1
vote
1answer
59 views

sharepoint modal dialog not working

I am trying to display a list items's content (body column) when you click on the title in a modal dialog box. If I fill the modal function with nonsense text, it works fine (for example, title: ...
1
vote
0answers
56 views

How to add Onload change event in Dropdown list

Onload of the page: 1. Change the selected value of dropdown 2. DFWP will update list I have a dropdown list connected to a DFWP for filtering. Using javascript and onload function of SharePoint, I ...
0
votes
1answer
81 views

Modal dialog from picture

This is the updated code as per a previous reply although this doesn't appear to be working. Please advise - do I need to add any jQuery files to the site? See the updated code below. I have some ...
0
votes
1answer
215 views

SharePoint 2013 REST: Value does not fall within the expected range

Creating and updating list items via jQuery/REST. The script has been functional for roughly four months now, but this morning decided to start throwing an error. error: {code: "-2147024809, ...
1
vote
1answer
71 views

Styling a list in sharepoint 2013 with JSLink returns [object HTMLDivElement] instead of content

I have a news list in sharepoint that I'm trying to style with jslinks, but for some reason it returns the [object HTMLDivElement]. the footer appears correctly and is styled, but the column styling ...
0
votes
0answers
9 views

Redirect User after starting a workflow fails Customer EditForm.aspx Sharepoint 2010

I have the code below that successfully updates the record for which the form is showing, kicks off a workflow to mark the record as CLOSED and notifies the user that the process has taken place. I ...
1
vote
1answer
41 views

Hide Ribbon Row Overriding Web Part

I have the following lines (using javascript) in my default display form associated with a document library. It works fine, but when I go to add another web part to that display form, it overrides it ...
2
votes
1answer
41 views

Copy a file (document) with REST/JSOM and set field values of the copied file

I wan't to copy a file from one library to another and set some field values. I used the following code to perform the file copy: function copyFileREST(name) { var call = $.ajax({ url : ...
3
votes
2answers
98 views

Create and Update Records in Multiple Lists in SharePoint 2013

In SharePoint 2013, i am designing relational lists which will be displayed in one single form. For example, I have 4 lists; List A List B List C List D For every record that is created in List ...
1
vote
0answers
29 views

javascript works on checkout not in check in

I am using SP2013 & giving a JavaScript on homepage but the problem is it works when the homepage is checkout as soon as I check in the script doesn't work. what might be the reason ???
0
votes
0answers
16 views

Additional space while embedding <script> in SharePoint table

I need to embed an HTML line on SharePoint. As you can see in this picture in attach: first row, more than 60px, the code is: <script type="text/javascript"></script><button ...
0
votes
0answers
14 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
1answer
33 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 ...
1
vote
2answers
40 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
81 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
48 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
78 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?
4
votes
1answer
146 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
55 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
21 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
69 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
89 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
103 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
59 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. ...
1
vote
0answers
40 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
37 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
2answers
249 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
56 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 ...
4
votes
2answers
63 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
29 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
53 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
63 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 ...
2
votes
0answers
59 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
17 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 ...
1
vote
0answers
83 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 ...
2
votes
1answer
66 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
242 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
1answer
32 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
32 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
147 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
111 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
1answer
65 views

CSR View Fields dynamic with Field names from View?

I try one CSR file for all views but the views have not all the same columns Is it possible to make the Fields in TemplateOverrides dynamic with the Field names from the current View? ...