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

javascript not getting data from sharepoint list

I tried the below code from MSDN function retrieveListItems() { var clientContext = new SP.ClientContext('http://www.vignesh.cloudappsportal.com'); var oList = ...
0
votes
0answers
20 views

Ajax call stopped working

I wrote a code to get userProfile from sharePonit in jquery/javascript. few days ago, i tune up my internet speed and the code simple, stop working. I got this conclusion after put a break point and ...
0
votes
1answer
22 views

How to display application web form in modal dialog?

I have the following code of application page formdem.aspx: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> ...
0
votes
1answer
9 views

Upload new image in asset library in SharePoint Online

I am developing a SharePoint Hosted app for SharePoint Online. Now I wondered if there is a way to upload a new image file to the central asset library. I found several code snippets for C#, but my ...
0
votes
0answers
10 views

Adding a custom ribbon tab breaks grouping by function in sharepoint list

So, I found this tutorial online as to how to add a ribbon tab in sharepoint 2013. While it works, whenever I add an OOb library or list and use grouping in that list, the items cannot be expanded but ...
3
votes
2answers
49 views

Start Workflow using JavaScript or Ribbon Button

I'm using SharePoint 2010 Foundation. I've developed a SharePoint-Farm Solution and now I want start a SharePoint Workflow clicking a Ribbon Button. I know that with SharePoint Designer I can create ...
1
vote
2answers
41 views

Print only the used fields in Sharepoint using JavaScript

I need to print only the column that has been created by me. function retrieveFieldsOfListView(listTitle,viewName){ var context = new SP.ClientContext.get_current(); var web = ...
1
vote
0answers
16 views

SP13 - Finding all sites a group has access to

In SharePoint 2013 when you're looking at a group's page (the one that lists all of the members of the group) you can open the 'settings' menu and there's a choice to 'view group permissions'. This ...
0
votes
0answers
12 views

retrieving user name in Jquery datatable and caml query

Hi I am on SharePoint 2010 version , I have created a list with createdby, createdDate and Employee name as columns in it. I am having a text box and a button when I enter employee name and click ...
1
vote
2answers
28 views

Get file name from document library

I have a document library named DocLibrary. Inside that, I have created few folders. Each folder have 3 another folder. Inside that, I store the specific files. Example: DocLibrary > NF1> ...
0
votes
1answer
22 views

Refresh the data on the webpart without entire Page refresh

The data from the list is displayed on the page using content editor webpart as a scrolling text. The requirement is whenever the list is updated with new items, the data displayed on the page using ...
1
vote
1answer
42 views

SP.UI.ModalDialog undefined - Close SharePoint Modal dialog with javascript

I have created a modal dialog in SharePoint with the elements.xml. I use a SharePoint Hosted app. This is my CustomAction Definition: <CustomAction ...
0
votes
2answers
30 views

How set a people field with JavaScript

With SPServices I'm getting information from a list A that information contains in one of its columns a people field. In the form B I need to copy that person coming from the list A in one of the ...
0
votes
2answers
40 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 ...
1
vote
1answer
25 views

Disabled custom action tooltip

Some custom actions in SharePoint display an additional message with possible reason of the action being disabled. Is there a simple way of adding such a message only when the action is disabled (for ...
0
votes
0answers
34 views

Create links to change between calendar views

The code on this question, Using Javascript to change the view on a calendar web part, allows you to create links to change between month, week and day links. I am trying to do something similar, but ...
0
votes
1answer
20 views

How do I send data to a list form from a SharePoint page

I have a page that displays data from several lists and has links to a list form which open in a modal popup. I need to send some data to the form to be displayed on the form. Is there a way I can do ...
0
votes
2answers
42 views

How to get major & minor version limit of list/library using javascript?

How to get Major Limit of Sharepoint List and both Major & Minor Limit of Sharepoint Library using javascript ?
0
votes
0answers
10 views

Alter pathname to include query parameter [migrated]

I need to alter the following line of javascript: whoproxy += 'proxying as '+proxyingname+'.&#160;'+selectproxy+'&#160;<span ...
0
votes
2answers
53 views

Can you populate a dropdown choice field with jquery and javascript?

I would like to use a radio choice field to determine the values that will be populated in a dropdown choice field on a sharepoint list form. for example; Food Type (radio field) Options Meat ...
0
votes
2answers
18 views

Open form in a model window

I have this code that opens a form from an image button and I want the form to open modally. <a class="ms-addnew" id="idHomePageNewItem" ...
0
votes
1answer
40 views

Get document from Document Library using Javascript

I am trying to get a document from document library.I am getting the file but I can't get its binary value. $.ajax({ url: fileUrl, binaryStringResponseBody: true, headers: { ...
0
votes
0answers
23 views

How to add a reference to a javascript file in a custom action for a provider hosted app?

I have a custom ribbon button in my app where I am trying to add logic to enable/disable the button based on whether or not the selected items are records. I am able to get the EnabledScript attribute ...
0
votes
2answers
24 views

Javascript in script editor not always rendered

I'm having a strange problem with Javascript and SharePoint Online. I've created a page that contains a script editor webpart with some JavaScript code (calls a few REST services to show a list of ...
0
votes
2answers
38 views

How to host static html page and override all existing Javascript on SP2013?

I have a flipbook (generated by http://fliphtml5.com/). It contains a static html page with a lot of javascript and css files. Our users would like to host it on SharePoint site. The file can be read ...
0
votes
2answers
33 views

Schedule a workflow to run everyday

I want a workflow to run each day at 2.00 AM. Is there a way to achieve this? I found many posts but didn't work.
1
vote
1answer
40 views

how to display a contacts list in accordion view?

I want to display a contacts list in SharePoint 2013 as accordion. I tried to use the code from ...
1
vote
3answers
57 views

change value in dropdown menu sharepoint

I have a dropdown box name Status added in sharepoint page which have option (choose.. , In progress, Closed). Where Choose.. is bydefault value. When I open the page the value Choose.. should get ...
1
vote
4answers
62 views

Call JavaScript function after blog/page fully loaded?

using SharePoint 2013 I've added a blog post. This blog post requires me to run some JavaScript after it has been loaded. I am also using jQuery, so I tried the standard $(myInitFunction) to no avail ...
0
votes
2answers
29 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
16 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
50 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
21 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
43 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
11 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
29 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
13 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
27 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
31 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
43 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
50 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
31 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
18 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
59 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
13 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
44 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
18 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 ...