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

Click anywhere in data view group by for expand/collapse

I'm trying to get the functionality of being able to click anywhere in the group by header element to expand and collapse the group. I have gotten close where I can click anywhere in the element ...
3
votes
1answer
382 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
3
votes
1answer
492 views

JSLink and Javascript Events

I have customized the view for my SharePoint 2013 List using a JSLink file but have not been able to get the buttons I added to the page to respond properly. They cannot find any DOM elements when the ...
3
votes
1answer
326 views

Get distinct values via mechanism used when clicking “Show Filter Choices” on a Sharepoint list using Javascript

As many other people on this site seem to need, I'd like to get an array (or equivalent) of the distinct values in a field for a list. The canonical way of doing this is to retrieve the entire field ...
3
votes
1answer
896 views

SharePoint 2013: Check Workflow status programmatically (javascript)?

I need to be able to get the status of a SharePoint workflow 2013 using javascript. My goal is to start in a loop for all selected items synchronously a workflow. For that I will check if the started ...
3
votes
1answer
749 views

Get ID of item in ListView Web Part

How can I get the ID of an item in a ListView Web Part, on hover? I need this ID to fetch some columns from the list, and show them in a tooltip box. Can I get the whole thing done using ...
3
votes
2answers
1k views

Add Users with Javascript after Client PeoplePicker is loaded

the following MSDN article describes how to use the Client PeoplePicker with Javascript: http://msdn.microsoft.com/de-de/library/office/jj713593(v=office.15).aspx I have an SharePoint hosted app ...
3
votes
1answer
146 views

launch ribbon action with ribbon hidden

I didn't find anything to help me out, so I'm asking your help. I work with sharepoint 2010. I have a team Site where the ribbon is hidden. (never trust users, thay are evil :p ) On this team site I ...
3
votes
1answer
234 views

JavaScript Validation in ECB for out-of-the-box menu items

Is it possible to add some kind of JavaScript validation to ECB items like Edit Item, Check Out and Workflows? What I want is a simple JavaScript alert and redirect to the list if the clicked item ...
3
votes
2answers
561 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
3
votes
1answer
250 views

Get Site Template ECMAScript

I have an ECMA script that I'm using to build a site directory (Thank you Bill Simser). I'm trying to add additional information such as the template the site is using, and not having much luck ...
3
votes
1answer
3k views

JS Web Worker and SP.JS - Type is not defined

I'm experimenting with using CSOM and Web Workers as many of my users use Chrome and FireFox. Currently I am importing SP.js and SP.Core.js importScripts("../SP.js", "../SP.Core.js"); What other ...
3
votes
1answer
1k views

Can I Access the SPAuditQuery from the JavaScript Class Library?

Or there's a SP2010 Built-in service to access Audit data? [UPDATE] Quick awnser, No, there's no way to access the SPAuditQuery from the SP JavaScript Class Library. At the end I end up using a WCF ...
3
votes
2answers
2k views

Multiple SharePoint 2010 modal-dialogs

Is it possible to show multiple modal-dialogs above each other? It should work like this: 1) User clicks link that opens first modal dialog 2) in first modal dialog, user clicks another link that ...
3
votes
3answers
3k views

Javascript to get GUID from SharePoint

I am newbie to SharePoint and I am uploading a file to the server using javascript. Now the task is to get the GUID of that file and display it ({alert(guid); is fine). I don't even know where to ...
3
votes
2answers
753 views

SharePoint 2010 Save ListItem without closing

Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
3
votes
1answer
515 views

Can I use JavaScript in 'Edit in DataSheet' mode?

I would like to use some JavaScript in 'Edit in DataSheet' mode to check a value and prompt a user to enter some text. Is this possible?
3
votes
2answers
53 views

Have javascript only run once at installation

I have a Sharepoint Hosted app in which I have some javascript (permission related) that only should run once. It should run only when the app is trusted by the admin that installs the app and when ...
3
votes
2answers
783 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
3
votes
1answer
59 views

Script editor webpart ribbon problems

I added a script editor web part (javascript code) to a view page (/Forms/AllItems.aspx). After that I can not see anymore the File and List category in the ribbon bar. I read somewhere that ...
3
votes
1answer
341 views

Suspend and resume SharePoint Online workflow using CSOM - Ecmascript

I have a requirement where the Master user has power to interrupt any workflow and put it on hold and the approvals should be stopped on that workflow until the Master user resumes the workflow. When ...
3
votes
2answers
450 views

Sharepoint REST service

Is there any way of reading the documents names of a Document Library using JavaScript from a web application that is not hosted in SharePoint? by the way, my requirement if for SharePoint 2010 not ...
3
votes
1answer
277 views

How to set a List's Default Content Type (order) by using Javascript?

I've spent a lot of time Googling and MSDNing on this topic and then stopped at the set_uniqueContentTypeOrder method. This method will take an array of Content Type IDs and change the "New Item" ...
3
votes
2answers
112 views

Show library items to anonymous users in Office365

We have a client in Office365, they have been using the public site for a while now and we put in some javascript that pulls images from libraries and displays them in various places as rotating ...
3
votes
1answer
115 views

Error calling REST API in Firefox

I am using Rest API for Follow Functionality. My JS is working fine on IE but it doesn't work on Firefox(neither it goes under success call function neither under error. Is anyone having any idea ...
3
votes
1answer
232 views

Get rid of Horizontal Scrollbar on SharePoint Online Public Website?

On my out of the box public website have a horizontal scrollbar I can't find the source of. No matter how I try to find it's origin, I'm having trouble getting rid of it. It may be an error in the ...
3
votes
1answer
101 views

How to remove default user from SharePoint 2010 calendar

I want to ask if there is a way to remove default user from SharePoint calendar. I am adding users via javascript, so default user is not needed. Maybe it is possible to do this by editint ...
3
votes
1answer
284 views

SP2010 possible to create a text file in document library and fill with data from list using JSOM JavaScript/jquery

Is it possible to create a new item in a library and default that to a txt file or XML and using JavaScript or jquery insert data from a list into that file? For example from a page click a button ...
3
votes
1answer
3k views

SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively

I have seen a lot of examples and questions about this out there but nothing I have found has helped me accomplish this. I need to be able to grab all the names of the documents within a given ...
3
votes
2answers
3k views

Disable a form text field with jquery in CEWP not working in Chrome/Firefox

I want to simply disable a text field (specifically a "person/group" field text box) from being editable on the edit form page of my list item. I have it working in IE using a Content Editor Web Part ...
3
votes
2answers
3k views

SharePoint javascript refresh page is reloading the whole page

In a webpart, I added a button that should trigger a modal dialog, and display a message when the dialog is closed. The dialog script is handled by this code : function OpenGenericForm(formUrl, ...
3
votes
1answer
728 views

“500: Internal Server Error” when trying to add a simple text file as an attachment via SharePoint 2013 REST API

Using SharePoint 2013 REST API, I am trying to attach a simple text file to a list's item. jQuery.ajax({ url: web.get_url() + ...
3
votes
1answer
2k views

The field 'EventDate' of type 'DateTime' cannot be used in the query filter expression

I am trying to filter standard Calendar events via SharePoint web api and my query looks like this: /_api/web/lists/getbytitle('calendar')/items?$filter=( EventDate ge ...
3
votes
1answer
140 views

Checking if the content database is in read-only using javascript?

Hi I'm pretty new to SharePoint and javascript. I am trying to check if the content database is read-only, and if it is then preform a function eg. if ...
3
votes
2answers
619 views

Generate file then close SharePoint dialog page

I have a custom solution where I open a SP Dialog box through Javascript. From this dialog, I want to generate a file and sent it to the user when he is clicking on a button, than close the dialog. ...
3
votes
2answers
526 views

Using javascript linking between issue list and document library

I'm making a issue list that should have link to a document library. After registrered I want the dispform.aspx to show a link to the library with filter on the ID from the issue list. I know ID ...
3
votes
1answer
437 views

SharePoint List items, UserControls and cookies

I have another task at hand. I need to use cookies to read a title of an item from a custom list in SharePoint. This task is for SharePoint 2010. I have a container set up that will display the ...
3
votes
1answer
297 views

Compressing or stop rendering of JS files from SharePoint on mobile devices

I have costumer who is complaining about massive data traffic on their mobile devices when they enter their website from their cellphones or tablets. When we made the site in the beginning, we made ...
3
votes
2answers
2k views

Programmatically add Event to Sharepoint Calendar using Client OM

I need to programmatically add events to a SharePoint Calendar and make them repeatable using JavaScript Client Object Model (without any c# code). Does anybody have ideas how can I implement this ...
3
votes
1answer
2k views

REST API + Expand Recurring Calendar Events?

Is there a way using the REST API (through javascript) to expand recurring calendar items? Or is there a helpful client side utility to assist with this?
3
votes
2answers
919 views

Sharepoint 2010 MdalDialog title [duplicate]

Possible Duplicate: Sharepoint 2010 ModalDialog title Hi, I am creating a popup window in sharepoint using this code in javascript. function openAutoResizableDialog(title, url, ...
3
votes
1answer
184 views

Getting the path of a an item on using UrlAction and JavaScript

I have a custom ECB menu item. I want to get the path of the file that has been right clicked and alert it using JavaScript. Is this possible?
3
votes
0answers
30 views

Making SP.UI.ModalDialog Scrollable on Mobile

I have a basic Modal Dialog loading on my sharepoint page through a function. It loads correctly and can scroll on desktops perfectly fine. I began testing the page for mobile functionality on a ...
3
votes
1answer
653 views

SharePoint 2013 Calendar Reservation

My company moves to Sharepoint 2013 and wants to have a reservation calendar. But the feature called resource reservation not enable in 2013, just in 2010 based on 'Group Work Site'. I can make it ...
3
votes
0answers
181 views

Is it possible to retrive CRM online data from SharePoint Online using javascript? [closed]

So I would like to get data from Microsoft Dynamics CRM 2013 Online into my SharePoint Online SharePoint Hosted App. Is this possible to javascript only? Can I use the same Cross Origin Query ...
3
votes
0answers
204 views

Gantt View and Javascript Events [closed]

I'm displaying a Gantt view in a page in like this: <Module Name="DefaultBlank" Url="" Path=""> <File Path="EmployeeWorkspacePages\default.aspx" Url="default.aspx" > ...
3
votes
1answer
278 views

Retrieve property bag for sub sites using JSOM

I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
3
votes
0answers
413 views

Bug: JSLink on field/column breaks callout menu in Chrome, Firefox [closed]

I am trying to use JSLink+JavaScript to customize the rendering of a field. My very simple JavaScript code looks like this: ;(function () { 'use strict'; console.log('EmployeeFieldCSR ...
3
votes
1answer
3k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
3
votes
0answers
226 views

Alternative to hook into RTE javascript [closed]

I'm looking to add some logic when a HTML element (input, button, .. but no regular text) is clicked inside the RTE control on a publishing page. One of the solutions I've been thinking about is ...