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

Update Custom Field in Task Project Online

Hello I found this article: Updating Project Server custom fields via JSOM. This article explain about how to update custom field value in Project. In my case, I am trying to update custom field ...
2
votes
1answer
383 views

SP2010 JSOM: error when trying to get all users of specific group using javascript

having trouble getting users return from specified group using javascript per this on MSDN var siteUrl = '/sites/MySiteCollection '; function retrieveAllUsersInGroup() { var clientContext = new ...
6
votes
3answers
2k views

Sharepoint page redirection using JavaScript

below I have some JavaScript which listens for mouse activity and starts a timer if there is no activity and then redirects the user to another page after say 2 minutes..The problem is that if I have ...
0
votes
2answers
46 views

All of the sudden i get “Unable to get property 'split' of undefined or null reference”

I have a SharePoint public site branded and it was working fine when out of the sudden the slider with images stopped appearing and I get this error : Unable to get property 'split' of undefined or ...
1
vote
0answers
94 views

Get the last rated item in a SharePoint list

we have a SharePoint list with social rating feature enabled. On the homepage I want to display the "Latest Voted Item" of that list. Is it possible to get the last rated items in a SharePoint list ...
1
vote
1answer
670 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
1
vote
1answer
9k views

Sharepoint 2013 not going to http://sharepoint/SitePages/Home.aspx

Currently in my Sharepoint Site, when I want to go to the main page sharepoint/SitePages/Home.aspx, it actually ends up going to sharepoint/_layouts/15/start.aspx#/SitePages/Home.aspx. This really ...
0
votes
1answer
29 views

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
0
votes
2answers
142 views

Unable to set value of dropdown on page load

I am using SharePoint 2013 online and I have created a form for my list using Infopath 2013. It has a combination of text fields and dropdowns. I am able to set the default value of text field using ...
12
votes
7answers
41k views

Get Site Collection full URL using javascript

I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way. I know that you can use ECMA script and the client ...
2
votes
1answer
695 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
4
votes
4answers
4k views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.
5
votes
1answer
64 views

is current ASPX page a List or Library page?

Is there a better way of testing if the current ASPX page is a List (or Library) page? I now have: if( !( document.location.pathname.indexOf('/Forms/')<0 && ...
0
votes
2answers
54 views

Item Edit Form: Delete Item on “Cancel”

I am building a custom list item edit form using SharePoint Designer. I need the item to be deleted when user clicks "Cancel" button (same functionality as he would press "Delete" in ribbon). I ...
0
votes
1answer
32 views

In a search display template, is there a search property available for the actual text (k=…) in Srch.U or any of the search objects?

I'm trying to add the searched text value to the query string in the url (<a href='...?searchText=[something]'>Title</a>) In the search display templates, I see ctx and Srch objects ...
0
votes
1answer
33 views

Save conflict - reset ratings and ratingscount in presaveaction

In my Editform I wish to reset all the ratingcounts on save, however I am getting an error message Save Conflict. Your changes conflict with those made concurrently by another user. If you want your ...
2
votes
2answers
855 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
2
votes
1answer
1k views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
0
votes
1answer
813 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
2answers
30 views

Disable Edit WebPart and/or Snippet link in a Script Editor Web Part on SharePoint Page?

I know it can be done with client side coding, but maybe there is a built in way to do this in SharePoint 2013. I have a web part I share with other sites, but do not want site administrators seeing ...
0
votes
1answer
589 views

SharePoint New and Edit Form Javascript Date Time Field

I have a custom list that contains a date time field. The client requested we trim the time portion of the field to only show two available appointment times of 8:30 am and 1:30 pm. In order to do ...
0
votes
1answer
24 views

Does a Sharepoint 2013 Online hosted Add-in have to create an app and app site?

Based on these Guides: https://dev.office.com/docs/add-ins/overview/office-add-ins https://msdn.microsoft.com/en-us/library/office/fp142379.aspx Is it possible to create a SharePoint Online 2013 ...
0
votes
3answers
52 views

How can I have yes, flagged and no buttons in a column

I have a document library where the CEO wants to see three buttons. If he has read the document he wants to click on Yes, otherwise it will always be No. If he clicks Flag it means it needs to be ...
0
votes
0answers
18 views

Button Changes to Green bu [duplicate]

input name="Button51" type="button" value="U" style="background-color: #FF0000" onclick="style="background-color: Green"" /> Criteria: SharePoint 2010, custom list with custom red buttons ...
2
votes
1answer
27 views

Insert JavaScript automatically to new pages added to SharePoint wiki library

I wanted to Insert JavaScript automatically to new pages added to SharePoint wiki library. Instead of users manually adding the script to each page, it should be present by default or added ...
0
votes
0answers
30 views

SPUtility not working on Custom edit Form

I have created new Custom Edit Form for one of my List and trying to set Value using SPUtility.js. I am constantly getting error Unable to get a SPField named Title(Field Name) But same piece ...
0
votes
0answers
14 views

SP 2007 makes IE to hang while running a jssor code

I'm using a jssor slider with vertical navigation (no-jquery version) on Sharepoint 2007 page within CEWP where i have replaced all the image links to images store under SP image library and ...
0
votes
1answer
630 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
0
votes
1answer
22 views

filtering webservice request with viewXml

Situation I have a Ajax query that gets all items from my list it gets all items (1000 ish) and the query alone takes about 1.3 seconds of the total load time of 1.5 seconds. Problem I know this ...
1
vote
1answer
47 views

CSR: ScriptLink/Custom Action CDN Libraries load after JSLinked files are loaded

I am almost to 2.0 with the generic iCSR support library. Having some issues with deployment: Adding the library as SiteCollection ScriptLink/Custom action loads it before msajaxbundle where ...
0
votes
1answer
71 views

Button Changing colors in a SharePoint list [duplicate]

I am using SP2010 and I have a javascript that I am using to change color of a button in my document library. I have added an input button in a library column, which is calling javascript onclick. My ...
2
votes
0answers
32 views

Filtering Lookup Column By Expiration Date [duplicate]

Scenario: I have created a lookup column with two columns. A department column and Expiration Date column. Each Department has a Expiration Date. For example see the image. When the Department ...
3
votes
1answer
1k views

Get selected items from JavaScript in the document library view

I have a page in which I have placed XsltListView web part to show the view of the picture library. Above that view I have placed a link using Content Editor Web Part which redirects to other web ...
0
votes
1answer
28 views

how to refresh the page when i click the asp image button? [closed]

When i click the image button, page should refresh and show the data i tried in javascipt ,jquery but i am not getting please someone help for this.. Thanks in Advance. here is my code : ...
0
votes
2answers
782 views

How to check if a list item exists or not in SharePoint 2013 using javascript

I have created one custom form and insert data into one list.I want to check before data insert into the list if the data exists in list or not .
1
vote
1answer
38 views

Files move from one library to another library using jsom

Below code is working fine, but inside for-loop if I put alert,then moving multiple file but if I remove, only one file moving. I do not want any alert/pop up. Please suggest. ...
0
votes
3answers
73 views

Allow users to add elements to a list but do not allow them to view it - client side

I have a form which users fill in, and the information is inserted into a Sharepoint List using Javascript. I don't want to allow the users to view the list, but add elements to it using Javascript. ...
1
vote
2answers
1k views

Creating Excel document using JavaScript

I've been researching into creating Excel documents in a SharePoint Library from an existing Excel template but all solutions I find are using server code. The Template can be part of a CT or in ...
1
vote
2answers
56 views

Create New Document Without Opening

I have a document library with custom content type (template). When I click the "new" button in the library it lets me to choose the template for new document or folder (default functionality). Then ...
0
votes
2answers
39 views

Open list element in modal view from a site page

I'm trying to include a link in a site page that leads to a specific element of a list.. I need the link to open the element détails in a modal dialog box instead of sending me directly into the ...
0
votes
1answer
60 views

Export Html table into Excel

I have written the code in .JS file to fetch the data from sharepoint list and display in html table. Now to take my work for next level I need to export the html table to "Excel". The below code is ...
6
votes
2answers
5k views

moveTo and moving documents from one library to another

I have followed and successfully implemented the excellent article: SharePoint 2010 ECMAscript – Copy\Move files to another document library – Part 2 located at: ...
0
votes
1answer
1k views

SPService GetListItems with CAML : can't get the example to work with status giving error

I am new to SPServices and trying start with example GetListItems. Below is my code $(document).ready(function() { GetTasks(); }); function GetTasks() { var method = "GetListItems"; ...
2
votes
2answers
630 views

List Item file attachment using ECMAScript Object Model

How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
2answers
51 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
1
vote
1answer
1k views

Show persistent status bar + form to update easily

I want to keep informed the end-users of my SharePoint site of any issue or relevant informations. Naturally, I would like to do so by filling HTML elements (input and select tags). Hence displaying a ...
2
votes
2answers
2k views

Uncaught Error: The property or field has not been initialized

I am trying to run the following code in a simple sharepoint app, but I got this error: Uncaught Error: The property or field has not been initialized. It has not been requested or the request has ...
9
votes
4answers
11k views

Get the current UI language with ECMAScript

Is it possible to get the display language from within ECMAScript? Similar to http://www.sharepointoverflow.com/questions/3129/get-the-current-ui-language-from-a-webpart, I'd like to get the user's ...
0
votes
1answer
19 views

Open In Explorer using Javascript outside masterpage

The following code works like a charm when executed from an aspx using the sharepoint masterpage. However, I need it to work from an html file in a document library on the same site. e.g. Works when ...
0
votes
1answer
30 views

Export out data view list to Excel

I have a data view list made using a linked data source of several SP lists. I tried to make it so that the data view list can be exported out as Excel, just like SP list. Is this possible? I tried ...