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
82 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
11 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
22 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
18 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
58 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
50 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
21 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
57 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
53 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
26 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
118 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
59 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
16 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
64 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
23 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
33 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
55 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
29 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
93 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
19 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
47 views

What is managed code. Is javascript a managed code?

What is managed code. Is Java Script a managed code?
1
vote
2answers
68 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 ...
3
votes
2answers
111 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
129 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
27 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
54 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
34 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
61 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
17 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
55 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
98 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
109 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
33 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
55 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
29 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 ...
2
votes
1answer
91 views

How to trigger the click event of the SharePoint OOTB list's new form Save button?

I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this ...
0
votes
1answer
59 views

javaScript will not fire unless the users do a hard re-fresh (ctrl F5) for the page

I have added the following script to my EnterpriseWiki.aspx page layout inside an enterprise wiki site collection:- <script type="text/javascript"> _spBodyOnLoadFunctions.push(function(){ ...
0
votes
2answers
23 views

Setup for accessing an external SQL database from SP 2010 using Javascript

I want to try to access an external SQL Server 2012 database on a SharePoint 2010 site, using javascript. I found one really interesting, good blog post about it online, but the link to the example ...
0
votes
1answer
59 views

Get user Login from User or Group field

I have a list with User og Group field. I've retrieved item from it, now I need to get user's Login. By reading User or Group field I can get only user id and account name. here's my code: var ...
0
votes
0answers
132 views

2013: load custom “clienttemplates.js” file

Requirement: I want to replace the file clienttemplates.js found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS with a custom version. I couldn't find the ...
1
vote
1answer
61 views

How do you get the default label of a term through JavaScript?

Most of this code comes from an answer to a previous question. I'm trying to take it one step further now and get the actual default label string. var context = SP.ClientContext.get_current(); ...
0
votes
0answers
39 views

Javascript Error inplview.js IE only

We're experiencing an issue where Internet Explorer 8 is reporting an Expected ';' in the minified inplview.js file. It doesn't affect any functionality it seems, but we have no idea what's causing ...
0
votes
0answers
32 views

New custom Create form does not auto complete “Owner“ field

I have an Issue Tracking list , and I have created a custom Create form using SharePoint designer , as follow:- The problem I am facing is that the owner field will not autocomplete the people ...
1
vote
2answers
140 views

Create json data dynamically from list using javascript

Can anyone tell me how to generate json data from SharePoint lists in the below format using java script. var jsonArray = [ { "user": { "id": 100, "screen_name": "d_linq" } }, { "user": { ...
0
votes
0answers
7 views

Provision WebPart from Appdomain

I can provision and install a webpart on a page from the app-domain, but its always invisible. I see that the webpart have been added in Web Part Page Maintenance (?contents=1). But i cant edit the ...
1
vote
2answers
52 views

When do you use SP.js?

This might be a very noob question, but when do you actually use SP.js? In my SharePoint site I am using ajax queries with the REST api like this: ...
1
vote
2answers
82 views

How can I get information about a term through JavaScript?

What I want to do is something like: var myTerm = getTermInfo(55c6801f-78b3-485f-b811-530bec1961e9);
0
votes
0answers
17 views

How to add a webpart zone using JavaScript in SharePoint 2013

Let say I can manipulate DOM to add extra DIVs to page. I need to know if it's possible to use JS to convert these divs to web part zone to display a button "Add a Web Part" (like the ones in Blank ...
0
votes
0answers
15 views

Can you use the HasRights() function in SharePoint 2013, if so how?

I am looking to limit the display of content on a custom page in SharePoint 2013. I wish to hide or display some s based upon the user's permissions. The function HasRights() seems to be what I need. ...
0
votes
0answers
18 views

Reading a SharePoint list from an on-prem farm from SharePoint Online no Apps

Been going mad for the last couple of hours trying to do what I thought was simple. I have a CEWP on a SharePoint online site. I am trying to make a javascript REST call to a SharePoint list that ...