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)

2
votes
1answer
56 views

OpenPopUpPage works for Chrome but not IE

I am at a lost why this works in Chrome but not IE. This is a link within a web part for SP 2010. <a ...
1
vote
2answers
58 views

How to send a document from a document library as an attachment in an email?

I need to add a column to a document library that will have the text "Send in email" for each document in the library. If a user clicks on it, it should open a new Outlook email and automatically add ...
1
vote
2answers
66 views

How do you use JS Link with Pages?

I'm trying to make a JS Link script that will work with my site's Pages list. Basically I want to display a simple list of page titles. I'm using the Pages Web Part (Web Part > Apps > Pages). var ...
3
votes
3answers
267 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.
0
votes
0answers
52 views

Update Custom Field in Task Level Project Server using JSOM (PS.js)

Does anyone have javascript which updates the task level custom field? I just have the code with C#. I am trying to convert this code (below) to javascript and use it. DraftProject projCheckedOut = ...
1
vote
2answers
106 views

How to save checked value/state from radio button in an Html page form to custom list in sharepoint online 2013

I have a working loop that finds all the input tags in a Html form. My problem is that it wont save what state the radio button are in to the custom list in SharePoint online. I have other loops for ...
1
vote
1answer
53 views

How to open SharePoint list row in own HTML page JavaScript?

I have a SharePoint-Hosted app with a survey with textareas and radio buttons. The textareas and radio buttons are connected with columns in a SharePoint list so the user is filling in all boxes and ...
1
vote
1answer
77 views

Run js after display template has loaded/rendered content

I have a javascript file that I want to run after my display template has rendered. I have added it to my display template like so : <script> $includeLanguageScript(this.url, ...
1
vote
1answer
31 views

Return to last page visited

I have Sharepoint in Office 365. The site is set like this: Home>Training>Training Request Form. I have it set so that, on submit, the Training Request Form displays a thank you and a link that ...
1
vote
1answer
95 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
0
votes
2answers
38 views

How are Deferreds different from callbacks

I have following piece of SharePoint JavaScript client object code which works perfectly without throwing any error. $(document).ready(function () { //don't exectute any jsom until sp.js ...
1
vote
1answer
61 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 ...
0
votes
0answers
8 views

Global search and page search, stop search item showing in global when in page

I have a global search and a page search for a site in my site collection. When I search with page search the item I search also appears in the global search box when on the search results page Is ...
0
votes
1answer
46 views

Send data from textarea to SharePoint list with javascript

I have created a SharePoint app for a form with textarea boxes. Now I want to send all data that I have written in the textarea to SharePoint with javascript. Every textarea have a unique ID and I ...
0
votes
1answer
81 views

Error posting a REST request via cross domain library - Cannot handle Taxonomy Field Value

I have an app that updates a list item then starts a workflow on it. It was working fine, then stopped working the other day. It has started throwing an error regarding Taxonomy fields, but I am not ...
0
votes
1answer
144 views

SharePoint 2013 App Office 365 copy list item

I try to build an SharePoint hosted app, have started with a custom menu action. When I choose it I want to copy the selected item and automatically change some metadata for it. Problem is I can't ...
0
votes
0answers
15 views

100% Height IE issue in Sharepoint 2013

I'm currently building a site using Sharepoint 2013 and I've now come to the cross browser testing stage... Some of my divs have been set to height: 100%;, these divs don't display correctly in IE, ...
0
votes
0answers
31 views

Sharepoint 2013 : Create a directory structure on a domain's file server

I would like to implement a HTML form in a SharePoint 2013 page, which can create a directory structure (or copy an existing one). The main issue is that the directory structure should be ...
0
votes
1answer
21 views

This list is currently being managed by Project Web App, and cannot be edited directly

I got this error when trying to update the Tasks: {"error":{"code":"-2130575223, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"This list is currently being managed by ...
1
vote
2answers
75 views

how to create a dependent value list using javascript validation in sharepoint designer 2013

If the user chooses the first choice from column A, he sees in column B the choice 1,2,3. If the user chooses the second choice from column A, he sees in column B the choice 4,5. Conditions: 1.I dont ...
0
votes
0answers
56 views

How do I display Sharepoint 2010 list items within an external (intranet) HTML static web Page

Overview: I'm currently able to display Sharepoint 2010 List items from 3 Lists within an external HTML page on our company intranet. I use a JQuery script that pulls the RSS feed for each list. This ...
1
vote
0answers
23 views

Cannot update allowMembersEditMembership

I can't seem to update the setting on a group to allow members to edit members. This is my code: function setGroupsMembershipEditingMode(uri) { var context = new SP.ClientContext(appweburl); var ...
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 ...
0
votes
2answers
58 views

Accessing a SharePoint 2013 checkbox with JavaScript?

It seems the way a checkbox renders in SharePoint 2013 server has changed from the way it was rendered in 2010. When I view the source through the browser I see... <!-- FieldName="MyCheckboxes" ...
0
votes
0answers
33 views

Conditional formatting in display template in sharepoint 2013

I have a Content Search Web Part (CSWP) that lists two different content-types from a different application. I would really like to be able to make the CSWP show content-type A in green and ...
0
votes
1answer
319 views

error: The collection has not been initialized

I get this error error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. it has a problem in ...
1
vote
1answer
87 views

How to write a WCF Service for SharePoint 2013 hosted App?

I've deployed a WCF Service in SharePoint. I am able to retrieve data from it using URL: http://nit-hv8-itr4:1111/_vti_bin/PresidentsService.svc/GetAllPresidents The problem occurs when I try to ...
1
vote
0answers
20 views

Uncaught Reference error:InitImgLibView not defined

I have a visual webpart solution.A picture library is there whose view i have modified by taking newsletter as a style.. I have written a code in javascript that will allow only image files to get ...
0
votes
1answer
83 views

CAML query to ignore folders

I am searching my list but the list is in folders. How can I use a query to ignore the folders and get the whole list so I can search it. I am using sharepoint 2013 and javascript. I want to get all ...
0
votes
1answer
30 views

How to exctract filtered items from SharePoint List to Excel

I'm using Javascript and AngularJS to get all data from a SharePoint list in JSON and displayed it into a table. User can sort it, filtered it and etc. There is a really nice paggination. Everything ...
0
votes
0answers
46 views

Metadata gets over written by SP.File.copyTo

I have some javascript that copies a selection of files to a temp lib for processing, this library has a custom content type set, but I have also added a column to the library as well so that I am ...
0
votes
0answers
59 views

Loop through array and update metadata on files using relative URL only

I've got a script that combines JavaScript, jQuery, and SPServices to build an array of documents, copy each file or subfolder to an alternate location, then update the original file to indicate it's ...
0
votes
0answers
37 views

How to highlight Radio button text in survey list sharepoint 2010

I have the below Jquery script to highlight a text in the Survey list sharepoint 2010. It is working fine for custom list but not for Survey list. Can you please help me . Below is the script and ...
1
vote
1answer
116 views

CRUD Tasks using Javascript via REST OData

I've looked this post to build CRUD process using Javascript via REST OData. I've have managed it for Risks and Issues list. But, I haven't succeeded for Tasks item. What's the difference between ...
0
votes
0answers
25 views

closing parent page radwindow from child user control

I have a parent page with I have a child page with the UploadFileUC user control. which has close button. how can i close my RadWindow from the child page using my radbutton using ...
-1
votes
2answers
55 views

What is managed code. Is javascript a managed code?

What is managed code. Is Java Script a managed code?
1
vote
2answers
74 views

Javascript always failing

I am busy writing some javascript to take a list of selected documents and do some processing on a list with each document in Office365. I am getting a strange error when the code tries to load the ...
4
votes
2answers
137 views

REST API along with startswith and tolower function method in SharePoint 2013

I would like to bind all users into textbox autocomplete event. I done with below script but it is consider case sensitive expression while searching the results. $("#txtselectuser").autocomplete({ ...
1
vote
1answer
185 views

O365: Unable to get property 'get current' of undefined or null reference

I'm on SP2013 in an O365 environment. I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
0
votes
0answers
35 views

Remove 'onmouseover' sorting options for Business Data List Webpart

I have a Business Data List webpart displayed in SharePoint. The data that comes into SharePoint is formatted as general, so the sorting doesn't work. It sorts based on the 'edit view' settings of the ...
1
vote
1answer
65 views

Some javascript not working in web part

I'm noticing that not all of my Javacript - all of which worked in a basic ASP.NET Web Forms application - is working. I'm not sure what could be causing this. For example, the following JS/C# calling ...
0
votes
1answer
38 views

Issue on Chrome - Javascript list view

I have an issue with this simple Javascript code into a SharePoint list view page. <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script> ...
0
votes
1answer
72 views

Check it in error sp.ribbon.js

Recently I've started getting this error when trying to 'Check it in' while looking at a page. The error in the JavaScript console is: SCRIPT445: Object doesn't support this action File: ...
0
votes
0answers
18 views

Is there a JavaScript event that fires when the yellow message bar is shown?

I want to call a function when the DeltaPageStatusBar is displayed.
1
vote
2answers
66 views

How to add content above list view using JS?

I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
1
vote
1answer
132 views

Updating document metadata using Javascript or jQuery

I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
1
vote
2answers
117 views

How to recreate a people picker (or anything else that can autocomplete names)?

I have a page on which I have a drop-down list with the names of all the groups that I created in SharePoint. When a user picks a group from that list, it will display extra information on the page ...
0
votes
0answers
52 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
1answer
74 views

“Permission Denied” error in IE after adding content editor to form

A site that I have not modified in several weeks has suddenly stopped functioning in Internet Explorer as it has for the past few months. I have a content editor in my list on the New, Display, and ...
0
votes
1answer
38 views

Get images from a SharePoint Library

I'm making a Carousel that need to get images by date of a SharePoint Library , all the code of the carousel, and configuration page i have already maked, but i dont have no idea of how i get the ...