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
1answer
38 views

TypeError: SP.ClientContext is undefined

I tried to add data to a list using a HTML Form and Javascript. When I sent the data to the list I got TypeError: SP.ClientContext is undefined. After I cleared the cache and cookies everything ...
1
vote
1answer
32 views

Why is CORS not used for cross-domain requests by default? [closed]

In order to be able to do cross-domain AJAX requests, SharePoint 2013 introduced SP.RequestExecutor.js library which uses a hidden iframe to do the request. This looks hacky (although I'm not sure if ...
0
votes
1answer
13 views

display number of text columns depending on number choosen in a choice column

I want to create a jscript to display number of columns depending on number of columns choosen. e.g if i choose 1, it should display column 1(text) and if i choose 2 it should display two text columns ...
0
votes
1answer
33 views

SharePoint Conditional Formatting without using Designer

I am trying to apply conditional formatting to my SharePoint list based on a few conditions. For example I have a column (Month Needed) that the user selects a date from a drop down list in the ...
0
votes
1answer
51 views

Use a HTML form to create new list items

I've created a HTML form webpart with some inputs. I want to insert the data contained by the inputs into a Sharepoint List on submit. How can I do that?
1
vote
3answers
68 views

Getting List Column Order

I'm using the SharePoint 2013 JavaScript APIs, calling web.get_lists().getByTitle('ListTitle') and then list.get_fields() to create a custom search panel. However, the fields do not come back based on ...
1
vote
2answers
41 views

Loading sp.js in SharePoint 2013

My understanding of JS is very basic. I have a slideshow working in SP 2013 (also needs to be IE8 compatible) that works on the script editor page but not on the actual live site. I've read about ...
0
votes
1answer
20 views

Using SharePoint 2013 Online, how do I run getSubwebsFilteredForCurrentUser on sibling site collections and display in a single page?

The page containing the results belongs to one of the sibling sites and I would like to be able to loop through the site collections dynamically without providing a list of collections first.
0
votes
1answer
25 views

List view filter callback

Is there a way to catch the event fired alter filtering a list view webpart? (fintere using the default filter) I need to get the items in the view after a filter has been applied. Is there a sort of ...
1
vote
3answers
104 views

How to get a old version of list item?

I need to get all field values of an specific version. It is possible by sharepoint hosted app (javascript)? I need to create a custom version history page of itens. If there is a caml query ...
1
vote
0answers
29 views

How can I get displayed date of a Calendar view in Day mode via Javascript?

I have a custom calendar list with Calendar view, when adding a new list item I want to set Date field to the clicked date. Or even a date range Is there a simple way to achieve this? I there a way ...
1
vote
2answers
26 views

Moving wepart down while scrolling

We have a wepart page with 2 sections. On the left side is a big task list and on the right side is a short list with informations to complete the task. Both lists are list view webparts. Is it ...
0
votes
0answers
64 views

Downloading large binary files and upload it to SharePoint document library using REST

I am building a SharePoint hosted app that communicates With a REST service, also built by us. The REST service provides a method to get a file (image or video file, typically 4Mb - 50Mb, but also ...
0
votes
1answer
39 views

How can I load some JavaScript inside of a popup?

When creating a new event in our calendar, an absolutely positioned iframe appears. How can I load JavaScript inside this iframe? I want to do some manipulation of the form with JavaScript.
1
vote
1answer
46 views

Java script: how to get Workflow Id from Workflow Task Form

I need to get the Workflow Id with java script after editing a Workflow Task. What I have this far is only a script that gets the Task Id when the EditForm is opened: $(document).ready(function () { ...
0
votes
3answers
60 views

SharePoint 2013 hiding ribbon stops scrolling

Recently I have been working on SharePoint 2013 master page. It's a fixed width design. The requirement is that, only the users who have edit permission can see the ribbon can see the top sharepoint ...
1
vote
0answers
57 views

Get value of custom column from Lookup Field in View - Client Side Rendering

I'm wondering if is possible use the Id of the Lookup Field for obtain a custom column created in the list. Example: I have two lists called Books and Authors. Here, Authors has a LookUp field to ...
0
votes
2answers
25 views

Problem converting the timestamp 1426593600000 to a date

I am trying to get some calendar items based on the StartTime field. I've done this: /_vti_bin/ListData.svc/MyAgenda?$filter=StartTime%20gt%20datetime%272015-03-16T19:00:00Z%27 This show me the ...
0
votes
0answers
32 views

How to create a folder in SharePoint using Javascript

How to create a folder in SharePoint using javascript and integrate the folder to Microsoft Dynamics CRM?
0
votes
1answer
33 views

Cannot get ribbon button by Id through Javascript

I've got a delegate control which persists a customAction Tab onto every page of my host web. In the same Delegate control file, I reference a javascript file which I want to use to hide specific ...
0
votes
1answer
32 views

Need some help with JavaScript variables in SharePoint 2010

Can you say why this code doesn't work for me? SharePoint 2010. I have no ideas any more about how to set this value to global object :( ExecuteOrDelayUntilScriptLoaded(getWebUserData, "sp.js"); var ...
1
vote
1answer
53 views

Undefined custom user profile properties - javasript - rest

I'm trying to get a custom user profile property, but I only get that the property is undefined. What I'm trying to do is to get a custom user profile property, without having to loop trough the ...
1
vote
1answer
29 views

How to Send return value to the caller function correctly

Hi i have a code like this. var guiD = myCallerFunction('abc'); alert(guiD);====>Line No Y function myCallerFunction(name){ //Some code here var terms = termSet.get_terms(); ...
0
votes
0answers
28 views

Sharepoint 2013 - open a second modal window from a first modal window

I have an aspx page opened in a modal. On button click I need to close the current modal and open a new one or just open the new page in the same modal. Any suggestions? Below is my code: function ...
0
votes
0answers
13 views

SP Designer - Hiding Tabs on Tab Control Based on Read Only Field

I have the following JS code which works if I do not make the field read-only, however I need AllUsers to be unable to edit this field. I tried to use a calculated field instead but this did not work ...
0
votes
0answers
21 views

Cascading dropdown in Sharepoint 2010, issue using SPCascade

I'm trying to use this script http://www.spcascade.org/ and have followed each step accurately, however when testing it, the drop-downs simply display (None) rather than the values saved in the first ...
1
vote
1answer
39 views

How can I get information about a term through JavaScript by giving term name (label)

var myTerm = getTermInfo('term name'); specially i need to get the GUID of the term, i know that after getting guid i can get all the other properties of that particular term.
0
votes
1answer
64 views

how to call executeQueryAsync() to behave synchronously?

Items are saved in jumbled bcoz I am using executeQueryAsync().How to make executeQueryAsync() behave synchronously?
0
votes
2answers
29 views

Value of field based on other value field in New Form SharePoint

Here in the picture you can see how it looks like. I want when in 1 Variable Daten is empty then 1 Anzahl Stunden and 2 Variable Daten to be empty.
0
votes
0answers
19 views

Dynamically change date column sharepoint 2010

In a page layout I have 2 drop down column and 2 date column. Using Spcascadedropdown I am successfully getting the cascading feature for the 2 drop downs and also when the second drop down is ...
0
votes
0answers
30 views

is it possible to retrieve the current value in sharepoint list item before save

I have a sharepoint list. On the edit form of list item i have a custom action button to send the mail containg the contents of the list columns . If the user changes any value in a column and then ...
1
vote
0answers
15 views

'Srch' is undefined Shareponit View

I have a bug in JavaScript, 'Srch' is undefined in file sp.ui.listsearchbox.js, Line: 1, Column: 5673 this bug there is only on view, and I don't have any ideas how fixed this bug. Maybe ...
0
votes
2answers
49 views

SharePoint 2010 Rest API filter statement not working

I am trying to filter a rest query but can't seem to get it to work. During my testing, the following statement works (no filter, a alternate way to get the item I wanted): // sort the list desc and ...
0
votes
0answers
16 views

Maximize Button missing

I am working on a site which was developed on SharePoint 2010 but it's now migrated to SharePoint2013. The maximize button was working while opening the list in 2010 site,but it's not working on 2013 ...
1
vote
0answers
20 views

Infopath 2010 form in Sharepoint 2013 modifying values before save

I have a really complicated problem that I haven't been able to find a solution for and was wondering if anyone can provide some suggestions. Background: I have a SharePoint list that contains 2 ...
1
vote
1answer
39 views

How can I get all versions of a specific list item using javascript?

I need to get versions and his changes. It is possible using javascript client object model? REST?
0
votes
2answers
58 views

Add hyperlink to Sharepoint list item

I need to add a hyperlink to the Sharepoint (2013) list item in one of the columns or make the list item itself as a link. I don't know how to do this. Any help is appreciated!
1
vote
1answer
75 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 ...
1
vote
0answers
232 views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
1
vote
2answers
28 views

How to change Active Directory picture?

I got a request to create an App in a on-premise SharePoint 2013 enviroment. The App should upload a userprofile picture to a list and then send the small-thumbnail (sharepoint created) to the Active ...
0
votes
5answers
77 views

How to perform/retrieve a CAML Query in SharePoint Designer

I have a standard CAML query (see below) that I would like to perform in SharePoint designer. How do I take this CAML query and retrieve it's data. Also where do I declare the list to run it against ...
1
vote
1answer
68 views

Enable like function from catalog page via javascript object model - improve this?

The business need is to create a 'channel' page that will display thumbs of videos like a gallery, and I need to enable people to 'like' that content from the gallery page. (Standard disclaimer: I'm ...
2
votes
1answer
33 views

Sharepoint restful api: json return value is structured differently between simialr scripts

I have some odd behaviour when using REST API to query SharePoint lists. In one example, I have to use data.d.results[0] to get to the data, in another I have to use data.d[0] When I use data.d[0], ...
1
vote
1answer
33 views

AverageRating is null in JSOM

I am trying to get the rating field from a SharePoint pages library in JavaScript, after using the get_item('AverageRating') it's returning null. My function looks like the following: var ...
1
vote
1answer
79 views

SP.SOD.loadMultiple Issue

I am trying to load the project context in order to access some data. I am using the SP.SOD.loadMultiple function as follows: SP.SOD.loadMultiple(['sp.core.js', 'sp.runtime.js', 'sp.js', 'ps.js'], ...
0
votes
1answer
65 views

Rest API authentication

I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint). How can I authenticate the user to use the Rest API. I can not deploy a SharePoint app, I need ...
1
vote
0answers
33 views

How to get Web Application url in SharePoint 2013 in Javascript?

I'm looking for a "beautiful" and the fastest way to get only the web application url (don't want to trim or substring or anything else).
1
vote
4answers
179 views

How to get appWebUrl and hostUrl when getQueryStringParameter fails?

I have a sharepoint app with multiple .aspx pages. On different pages I push and pull from sharepoint lists and I would like to send emails. These require me knowing hostUrl and appWebUrl. I would ...
0
votes
0answers
37 views

Change selected items order and merge using Javascript

I am now able to get the selected list items and merge its contents. Is there a way to reorder the selected items before merge? Or is there a way to get the items in the order in which they are ...
0
votes
1answer
33 views

retrieve choice value with jsom

I'm trying to retieve a choice value that a user has selected from a dropdown list with : var oTextColour=oListItem.get_item('myChoice'); But I got null when alerting the value. I have tried : ...