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

Runtime error javascript in Visual Studio

Lately I get this error (see pic), however if I click continue everything works perfectly and the value is assigned correctly to variable xAppWebUrl. In another script I have similar code that runs ...
1
vote
0answers
18 views

Can I programmatically access the values and modified dates for appended column entries?

I have a Projects list with a multi-line text column named Progress Update set to "Append" to create a record of updates. This appended Progress Update column saves a "blank" value when a list item ...
0
votes
2answers
54 views

How to delete list attachments using javascript

How to delete list attachments using javascript? I have searched for same thing, but so many results are coming in which they are suggesting by using client object model using C# code. I didn't find ...
0
votes
1answer
27 views

Logout in Mozilla and chrome not working

I have configured fba in my site using thinktecture. When I click sign out or sign in as different user, sharepoint redirects me to following page: ...
0
votes
2answers
45 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 ...
0
votes
0answers
14 views

Can't send Email: Error 500 or 403 when trying to use SP.Utilities.Utility.SendEmail

I am getting a Internal Server 500 error when trying to send an email using the SP.Utilities.Utility.SendEmail in my SharePoint Online App. It is worth noting that I am working from a custom .aspx ...
0
votes
2answers
39 views

Create filtered list view in Calendar using JavaScript/JSOM

I am attempting to create a filtered list view in a Calendar. It is creating everything as appropriate, but not creating the filters. It believe it's my CAML. My goal is to filter by a choice column ...
0
votes
1answer
15 views

Creation of Calendar List View doesn't Set Calendar or Default View

I am using the following to create a View in a calendar, but it doesn't create the view as a calendar or set it as the default view. What am I missing? function createCalendarView() { ...
0
votes
2answers
30 views

Create Choice Column via JSOM

I am using JSOM to create columns in my lists and not having issues for text, user, or number columns, until I attempt to add a Choice Column. I have been trying different methods, but can't get it ...
0
votes
1answer
35 views

“The collection has not been initialized” when doing ListItemCollection.getEnumerator()

I have been having a problem with Javascript and Sharepoint 2013. I have a number of custom list rows that contain date and time values. I want to determine if there are any overlapping date spans. ...
0
votes
1answer
5 views

OpenLayers 3 zoom to mouse location pulls off to the left in SharePoint

I am currently creating a web application using OpenLayers 3 that aims to be embedded into SharePoint using the Script Editor tool. For the purpose of this question assume I am just using a basic map ...
0
votes
1answer
54 views

Export contents of a sharepoint list to a html table

How can I export the contents of a list to a html table? I know how to extract the elements of a list using CAML Queries, but how do I generate a html table containing the elements dynamically?
1
vote
2answers
55 views

Get Current User's Colleagues Using JSOM

Is there a way to retrieve the currently logged in user's colleagues' usernames? I found this which shows how to do it using server object model, but haven't found anything for JavaScript object ...
0
votes
0answers
17 views

How to make REST requests from javascript

I have a web site and I want to get a document library from sharepoint. I want to do this in javascript only. Do I need to get OAuth Access token? Is it possible to establish tokens without backend ...
0
votes
1answer
32 views

OData query operations in SharePoint REST requests

I have a list of id users, and I need to get listitems which are created by those users's list. I use this code to get it : > for (var i = 0; i < listId.lenght; i++) { var ...
0
votes
0answers
25 views

Use a Ribbon button to call javascript function(/library) located in a WebPart(SharePoint2013)

I am running a JavaScript library (OpenLayers, a geographical map viewer) inside a div element in a Web Part. I created (HTML)buttons in the WebPart to manipulate the geographical map shown in the ...
0
votes
1answer
22 views

Hiding 'About Me' from users from the Username drop down list

I'm using 2013 Enterprise and have customized a copy of seattle.master. I'm editing the seattle_custom.html and uploading the changes and publishing a major version. So far I've not been able to get ...
0
votes
1answer
61 views

HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs

I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM. The current task is to get ...
0
votes
0answers
16 views

Performance point filter in webpart zone

The page is already designed, but i need to do some new updates. Web part zone is added, but in that zone I can not add Performance Point filter. I have changed its master page name and tried it, but ...
0
votes
1answer
55 views

SP.RequestExecutor is undefined for angular controller

This is a sharepoint hosted app where I am trying to use the Sharepoint Request Executor to make a REST API Call to the host web to get list items. The code is however failing on the file: ...
1
vote
0answers
21 views

Sharepoint List Form Javascript get validation results

Is it possible to find out using javascript/jquery if a SharePoint 2013 new/edit list form throws validation errors? Something like: if(page.ValidationFailed) //do something I do not won't to ...
0
votes
0answers
19 views

How To disabled followed up link?

currently having Conversation Web Part,on that webpart , we need to make the "Follow Up" option from the ellipsis a disabled link.The client does not want employees to be able to get here. ...
0
votes
1answer
29 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"; ...
0
votes
1answer
39 views

Can I access a mysql database from a Sharepoint 2013 page?

I've recently figured out how to add, remove, update list items on a Sharepoint site using javascript. But can I access a mysql database from a Sharepoint 2013 page using javascript? I want to ...
0
votes
0answers
12 views

Remote web site read Managed MetaData from JavaScript

I have a simple web app (no relationship to SharePoint). From within this app I need to read the Managed MetaData Service on a remote SharePoint farm and display some data using JavaScript. How do I ...
0
votes
1answer
84 views

Web Part specific DOM Manipulation. Two identical Script Editor Web Part Code blocks

We have a script editor web part with javascript that references some jquery libraries. The code creates web part properties and hides DIV tag in the web part based on some conditions. It works ...
0
votes
1answer
40 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
33 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
14 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
58 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
69 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
43 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
22 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
27 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
108 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
31 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
72 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
40 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
50 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
70 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
63 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
27 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
34 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
34 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
33 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
57 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 ...
2
votes
1answer
33 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 ...