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

How to include JavaScript and CSS in SharePoint 2010

Hi I am creating some web parts in SharePoint 2010 non sandboxed solution. I want to include some JavaScript files and CSS on each page of my site. But I don't want to include my files on each web ...
2
votes
1answer
53 views

SPFolder.MoveTo functionality in JavaScript

In SharePoint 2013 I'm trying to add a script to move a folder from it's current location to a different parent folder while keeping the rest of the file structure the same. I am adding a button to ...
0
votes
0answers
19 views

Get the data from check box in edit page when in published page

<div data-name="EditModePanelShowInEdit"> <!--CS: Start Edit Mode Panel Snippet--> <!--SPM:<%@Register Tagprefix="Publishing" ...
0
votes
2answers
59 views

Current MySite url by javascript

I need to get the current user MySite Url using javascript / jQuery. I am using SP 2013
0
votes
2answers
65 views

REST Adding New List Item

I am currently using office 365 and lots of REST queries to display data. However I am now creating my own forms using bootstrap and JQuery. However, how do I use REST to add the data to the list. ...
0
votes
0answers
33 views

Filtering Image Gallery with Javascript based on choice column

I used the article/script linked below to create a preview page of SharePoint 2010 picture library. http://weblogs.asp.net/bsimser/jquery-sharepoint-picture-libraries-and-automatic-thumbnails ...
1
vote
3answers
53 views

Triggering javascript on a SharePoint Form Dropdown Field on Page Load without clicking

I have a NewForm.aspx page which is populated automatically via a query string in the URL, e.g. newform.aspx?Title=New Item&WorkArea=DHIS&Location=London I have some javascript code which ...
1
vote
1answer
26 views

PDF Preview in library

I have a library full of pdf's. Is it possible to show a preview of this documents in the library view? The preview is necessary because there are 5 user which work in the library and add the ...
2
votes
1answer
65 views

Adding 2 Caml queries in same executeQueryAsync

Is it possible to use two different queries to get to different lists and use them in the same executeQueryAsync() Something like this : var camlQuery = new SP.CamlQuery(); ...
0
votes
1answer
26 views

Getting the whole field instead of iterating through

var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('Privacy Statements'); var camlQuery = new SP.CamlQuery(); ...
2
votes
3answers
78 views

How to put an iFrame with a QueryString appended in its src in the ContentEditorWebPart?

I have a SharePoint site Page in which i need to put an iFrame element to display a web page.To achieve that I wrote some html and javascript within CDATA tag inside the Content section of a ...
0
votes
3answers
69 views

Sharepoint site : Javascipts not working

I have a sharepoint site . The javascripts seems to be working only for my home page . If i naviagate to any other pages , the javascripts are not getting executed . I observed the behavior in chrome ...
0
votes
1answer
20 views

getting length of list after caml query

var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('Privacy Statements'); var camlQuery = new SP.CamlQuery(); ...
0
votes
1answer
29 views

Whats wrong with my query

var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<Where><Eq><FieldRef Name="IsActive"/><Value ...
2
votes
2answers
101 views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
0
votes
0answers
16 views

get column from a list and put in an array

Is there anyway to get a whole column from a list and put it into an array like you would get a list item like so : var listItemEnumerator = collListItem.getEnumerator(); while ...
0
votes
0answers
18 views

Dilemma on pushing scripts files into SharePoint

As per MSFT recommendation best place to keep Scripts(.js file) into Document Library on that site collection, which also suited my application till now. Earlier we used to have 10 site collections ...
0
votes
1answer
50 views

Javascript for drop down list

I'm trying to create some JavaScript that will identify two matching drop down lists and send a pop-up alert. The alert would state "You must select one schedule per rank.". It would be nice to have ...
0
votes
1answer
37 views

SessionStorage caching when getting items from a list

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); var listTitle = []; var listUrl = []; var listIsActive = []; var listOrder = []; function sharePointReady(){ var siteUrl = mysite; ...
1
vote
1answer
19 views

Adding an array to sessionstorage sharepoint list [duplicate]

while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); listTitle.push(oListItem.get_item('Title')); ...
3
votes
2answers
90 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 ...
0
votes
1answer
17 views

get whole item from list not just individual letter

I have this code var listTitle = []; var listUrl = []; var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
1
vote
1answer
63 views

SharePoint Online REST API Image upload AJAX

I'm trying to upload an image to SharePoint using native JavaScript/jQuery - NOT SP.RequestExecutor. I've cracked the authentication issue, nice and easy, so now it's just a case of working out how ...
1
vote
1answer
23 views

Output url from a list javascript

I have this code which gets the items from a list and outputs them in an alert, however with urls it inputs [object object]. How can I make it print out the URL or the description var siteUrl = ...
0
votes
2answers
44 views

Javascript works when on edit page but not when page is published

I have a page on my sharepoint site, when i'm on the edit page the javascript works however when I have published the page, the javascript doesn't work. I have added the link to the javascript file in ...
2
votes
1answer
43 views

Get MySite URL using ECMA

I am trying to get the URL of the logged in user's Personal site from another site collection. I am working on SharePoint 2013 online and using ECMA.
0
votes
2answers
24 views

Accessing Webservice from SharePoint 2010

My webservice is hosted on one domain and my SharePoint site on another domain. I wanted to access my web service methods from client script (in SharePoint). What I am doing is Added reference of ...
0
votes
1answer
22 views

Display a single item from list in main site to subsite

I want to display a single(filtered) item from a list on my main site, to the homepage on a subsite. I've initially tried the CQWP but it was to limiting when it came to what fields it displayed by ...
1
vote
1answer
57 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
0
votes
2answers
28 views

I need to filter a list with a 'Time' column so that user can see his created items in the list when that day appears?

I need to filter a list with a 'Time' column, so that user can see his created items in the list when that day appears? It should be for an AMPM view , Day of the week and Which week's day of the ...
5
votes
1answer
71 views

How configure Navigation Inheritance when create site with Rest API?

I wonder how do I keep the navigation bar of the parent site when I create a subsite. Below is the code I'm using to create the subsite and thought it might be some parameter that I could use to do ...
3
votes
1answer
76 views

Using SharePoint 2013 Cross-Domain Library in a simple web page: is it possible?

I have a web page hosted on a server, say at http://SVR1/path/index.html, and I would like to access some list items in a on-premises SharePoint site hosted on another server, say at ...
0
votes
2answers
53 views

How to get the count of list items using javascript?

I want to count the list items using javascript
2
votes
1answer
56 views

Suppress Ribbon Menu Auto Exanding

Working in a view for a Document Library I enabled "inline-editing" and discovered that as any input-element receives focus the documents-ribbon-menu auto expands. This behavior is undesirable so my ...
0
votes
2answers
45 views

Jquery to display date in MM/DD/YYY in sharepoint client object model [closed]

In My sharepoint list i have a Duedate if type DateTime.Using Client object model when we fetch the value from this Field, it is displayed in the below format(Mon Jun 23 GMT+0530 2014).How to convert ...
0
votes
0answers
27 views

How to pull property and auto-verify/populate?

In SP2010, there was a "Department" field where I had to extract the department of a user whose name was already verified/resolved in people picker. The code was: var invokeAfterEntityEditorCallback ...
0
votes
1answer
57 views

unable to get property 'getEnumerator' of undefined or null reference error

When i try to retrieve list items in sharepoint list using javascript i get the error my code <script src="/_layouts/MicrosoftAjax.js" type="text/javascript"></script> <script ...
0
votes
1answer
52 views

Reading excel cell value in Excel Web Access Webpart

I need to read excel cell value.Excel web access webpart is used to display excel file stored in a SharePoint 2013 document library.I need to use Jquery to read the data of excel file currently ...
0
votes
2answers
30 views

Change the text in menu items listed under Site Actions

I would like to find the best way to change the text of the title and description of some of the items listed under Site Actions. For example, say I wanted to change "More Options" to "Something ...
0
votes
1answer
24 views

Javascript not loading for users with Read permission

I got a Javascript on a Sharepoint 2010 site which is not loading for users with Read permissions. The Javascript is embedded in the site and users with Read permissions have access to it, but the ...
4
votes
1answer
67 views

SharePoint 2010 - Using REST to validate unique list item

I'm attempting to validate that a duplicate combination of staff (person/group field) + parent ID (lookup field) does not already exist in a list. Below you can see that I've added an ajax call to the ...
0
votes
1answer
98 views

Conditionally hide/require form column based on radio buttons

I'm sure it's been asked a million times, but after hours of searching and messing around I have been unable to find a solution...Hopefully someone here can help me? I have a SharePoint list that has ...
0
votes
2answers
41 views

loop through files in document set using javascript

is there a way to loop through the files in a document set using Javascript? I am not able to find a way to access those files. Any help is much appreciated.
0
votes
0answers
11 views

Event when selecting item in listview

I have created a webpart that shows detailed information of a selected item in listview. The problem is that user has to click on the select icon. The requirement is that the detail webpart should ...
0
votes
0answers
39 views

How to hide the calendar image for a particular group

I need to make a column date read only for a particular group in SharePoint. I am able to make the textarea of date field in editform.aspx readonly. I have a content editor where I am using ...
0
votes
1answer
95 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
0answers
29 views

Error: The value of the property 'Menu_Unhover' is null or undefined, not a Function object

I would appreciate it if someone could help me out here. I have a SharePoint global navigation bar that I'm using in SharePoint 2010. Every time I apply this script, I get the following error ...
2
votes
3answers
56 views

Use list or doclib?

I've got a list with a few thousands items. (It is a list of users that have completed some course.) Sometimes a user would like to have a course diploma printed. How could we achieve this? ...
1
vote
2answers
187 views

Populate User Properties in list form using JavaScript in Sharepoint 2013

I have a list where Administrator adds users and it contains information of the users(Employee Name, First Name, Last Name, Email etc). Employee Name is a people picker control and I need to populate ...
-1
votes
3answers
100 views

Disable Text Entry Into Rich Text Area Using Javascript

I'm trying to make specific rich text areas within a list edit form 'read only' based upon the overall status of the list item. In order to do this I've tried to use the following: ...